0 votes 0 votes soumya singh asked May 20, 2017 soumya singh 1.6k views answer comment Share Follow See 1 comment See all 1 1 comment reply Arunav Khare commented May 20, 2017 reply Follow Share Local is a scope while Automatic is a storage class. A local variable can have a storage class (static, auto, register). Default storage class, in C language for local variables is auto. So both are same 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes There is strictly no difference. { auto int a; /* ... */ } and { int a; /* ... */ } are equivalent. The common practice is not to put the auto specifier. pawan kumarln answered May 20, 2017 pawan kumarln comment Share Follow See all 0 reply Please log in or register to add a comment.