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
Why #include is used in c language?
What does %2f mean in c?
what is the function of pragma directive in c?
What are comments and how do you insert it in a C program?
What does *p++ do? What does it point to?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Write a code to generate divisors of an integer?
can we change the default calling convention in c if yes than how.........?
What are the ways to a null pointer can use in c programming language?
What is the hardest programming language?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Write a program to print fibonacci series using recursion?
What is signed and unsigned?
Why malloc is faster than calloc?