in Technology by (1.8m points)
What is keyword auto for in C-programming?

1 Answer

0 votes
by (1.8m points)

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.

Related questions

+1 vote
asked Nov 9, 2020 in Technology by JackTerrance (1.8m points)
...