C Functions Question:

Download Job Interview Questions and Answers PDF

Explain the use of "auto" keyword in C Programming?

C Functions Interview Question
C Functions Interview Question

Answer:

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.

Download C Functions Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know what are the properties of Union in C?What is self-referential structure in C Programming?