Explain the use of "auto" keyword

Explain the use of "auto" keyword.

When a certain variable is declared with the keyword ‘auto’ and initialized to a certain value, then within the scope of the variable, it is reinitialized upon being called repeatedly.

The keyword ‘auto’ is used extremely rare. A variable is set by default to auto. The declarations:

auto int number; and int number;

has the same meaning. The variables of type static, extern and register need to be explicitly declared, as their need is very specific. The variables other than the above three are implied to be of ‘auto’ variables. For better readability auto keyword can be used.
C function prototype
A function prototype is a mere declaration of a function. It is written just to specify that there is a function.....
Purpose of "extern" keyword in a function declaration
The declaration of functions defaults to external linkage. The only other storage class possible for a function is static....
Use of fflush() function
In ANSI, fflush() [returns 0 if buffer successfully deleted / returns EOF on an error] causes the system to empty the buffer associated with the specified output stream.....
Post your comment