What is auto declaration in C?

1 answer

Answer

1204455

2026-04-24 22:45

+ Follow

Auto is one of the four storage classes in c. This is the default storage class. The auto storage class can be used only inside functions, i.e. only to declare local variables and not to declare global variables. All the local variables are by default auto variables.

Other storage classes are:

Register - variables declared may get stored in CPU registers instead of RAM

Static - default storage class for global variables

extern - defines global variables that is visible to all object modules

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.