AUTOMATIC

AUTOMATIC allocates storage of size n automatic storage and returns the pointer to the allocated storage.

Read syntax diagramSkip visual syntax diagramAUTOMATIC( n)

Abbreviation: AUTO

n
Expression. n must be nonnegative. If necessary, n is converted to type size_t 1.

The storage acquired cannot be explicitly freed; the storage is automatically freed when the block terminates.