What is keyword auto for?

C Programming Language >   Overview of C Language >   Keywords in C  

Short Question

1922


Answer:

By default every local variable of the function is automatic (auto). In the below function both the variables ‘i’ and ‘j’ are automatic variables.

void f() {
int i;
auto int j;
}
NOTE − A global variable can’t be an automatic variable.


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.