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


Please Help Members By Posting Answers For Below Questions

What is a sequential access file?

644


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1522


What is the difference between fread buffer() and fwrite buffer()?

665


What is table lookup in c?

622


p*=(++q)++*--p when p=q=1 while(q<=6)

1264






How can you draw circles in C?

618


Why are all header files not declared in every c program?

596


What is #include conio h?

586


Explain what is #line used for?

603


What is structure in c explain with example?

628


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

705


What are the functions to open and close the file in c language?

589


Why do we need functions in c?

551


how to create duplicate link list using C???

2066


What is the full form of getch?

577