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
Is stack a keyword in c?
What are header files and explain what are its uses in c programming?
What are the header files used in c language?
What are the types of data structures in c?
Here is a good puzzle: how do you write a program which produces its own source code as output?
How can I change their mode to binary?
What are the features of the c language?
what is the syallabus of computer science students in group- 1?
Explain how does flowchart help in writing a program?
program for reversing a selected line word by word when multiple lines are given without using strrev
Hai what is the different types of versions and their differences
What is extern variable in c with example?
how to count no of words,characters,lines in a paragraph.
What are runtime error?
What is the purpose of the statement: strcat (S2, S1)?