What is the auto keyword good for?



What is the auto keyword good for?..

Answer / Rajani Kant Singh

In C, the 'auto' keyword is not necessary when declaring a local variable in a function because it is automatically implied. However, it can still be used for emphasis or clarity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are the properties of union in c?

1 Answers  


15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

2 Answers   CTS,


Difference between strcpy() and memcpy() function?

1 Answers  


What is the purpose of #pragma directives in C?

2 Answers  


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1 Answers  


Explain the use of 'auto' keyword in c programming?

1 Answers  


IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.

5 Answers   TCS,


What is difference between static and global variable in c?

1 Answers  


print out of string in this format; 1. "rajesh" 2. \n 3. %d

5 Answers   mpower,


Which is better pointer or array?

1 Answers  


Find greatest number out of 10 number without using loop.

5 Answers   TCS,


What is nested structure in c?

1 Answers  


Categories