b. Variables and Keywords


The auto keyword declares automatic variables. For example:

auto int var1;

This statement suggests that var1 is a variable of storage class auto and type int.

Variables declared within function bodies are automatic by default. They are recreated each time a function is executed.

Since automatic variables are local to a function, they are also called local variables. To learn more visit C storage class.

Leave a Reply

Your email address will not be published. Required fields are marked *