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.
|