what is the difference between auto and static keywords
Answer Posted / dr. guruprasad
auto and static are both storage classes.
if a variable is declared as auto - then the life of it will be only till function block.
if static - then value persists between various function call. Life till program ends.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Where static variables are stored in memory in c?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How can I implement sets or arrays of bits?
Is c is a middle level language?
Explain the difference between strcpy() and memcpy() function?
What is the difference between single charater constant and string constant?
What is the auto keyword good for?
What are linked lists in c?
what is the difference between 123 and 0123 in c?
What is a pointer variable in c language?
Explain what is a 'locale'?
If you know then define #pragma?
What is realloc in c?
What is meant by preprocessor in c?
What are conditional operators in C?