proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / saurabh
does static function increment the counter variable by
one?? if not then how can u say that i value will be
incremented by 1.
finally the i value will be 10 only. it will not
increment.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a sequential access file?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is the difference between fread buffer() and fwrite buffer()?
What is table lookup in c?
p*=(++q)++*--p when p=q=1 while(q<=6)
How can you draw circles in C?
Why are all header files not declared in every c program?
What is #include conio h?
Explain what is #line used for?
What is structure in c explain with example?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are the functions to open and close the file in c language?
Why do we need functions in c?
how to create duplicate link list using C???
What is the full form of getch?