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 string?
Explain do array subscripts always start with zero?
How do we print only part of a string in c?
Are bit fields portable?
what is the basis for selection of arrays or pointers as data structure in a program
What is external variable in c?
what does static variable mean?
What is the use of structure padding in c?
What are the Advantages of using macro
c language interview questions & answer
What is the difference between a free-standing and a hosted environment?
Why is c not oop?
What is use of #include in c?
Can we replace the struct function in tree syntax with a union?
Can you define which header file to include at compile time?