What is keyword auto for?

Reviewer Asked on August 14, 2019 in C Language.
Add Comment
1 Answer(s)

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;
}
Trainee Answered on August 14, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.