what is the difference between auto and static keywords
Answer / 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 |
What are examples of structures?
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
why java is called as a purely oops language.
What is function and its example?
what will be the output of this program main() { int i=1; while (i<=10); { i++; } }
Give a method to count the number of ones in a 32 bit number?
How will you allocate memory to a double pointer ?
What is volatile in c language?
Write a program in c to replace any vowel in a string with z?
Explain the meaning of keyword 'extern' in a function declaration.
What are the languages are portable and platform independent?Why they are like that?
how can make variable not in registers