+1 vote
11 views
What is keyword auto for in C-programming?
in Technology by (190k points)

1 Answer

0 votes

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.

by (190k points)

Related questions

+1 vote
1 answer 14 views
+1 vote
1 answer 6 views
0 votes
1 answer 53 views
0 votes
1 answer 14 views
14 views asked Nov 9, 2020 in Technology by JackTerrance (190k points)
0 votes
1 answer 11 views
11 views asked Nov 9, 2020 in Technology by JackTerrance (190k points)
0 votes
1 answer 6 views
+1 vote
1 answer 19 views
+1 vote
1 answer 18 views
+1 vote
1 answer 11 views
11 views asked Nov 9, 2020 in Technology by JackTerrance (190k points)
+1 vote
1 answer 11 views
+1 vote
1 answer 10 views
10 views asked Nov 9, 2020 in Technology by JackTerrance (190k points)
+1 vote
1 answer 13 views
+1 vote
1 answer 10 views
10 views asked Nov 9, 2020 in Technology by JackTerrance (190k points)
+1 vote
1 answer 8 views
8 views asked Nov 9, 2020 in Technology by JackTerrance (190k points)
+1 vote
1 answer 13 views
+1 vote
1 answer 15 views
+1 vote
1 answer 16 views
+1 vote
1 answer 28 views
+1 vote
1 answer 9 views
+1 vote
1 answer 15 views
+1 vote
1 answer 52 views
+1 vote
1 answer 9 views
...