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
Differentiate between calloc and malloc.
Explain what is a stream?
How can you be sure that a program follows the ANSI C standard?
What is null pointer constant?
What is nested structure in c?
What are the 5 types of organizational structures?
What is a protocol in c?
Explain how can you determine the size of an allocated portion of memory?
Did c have any year 2000 problems?
Do you have any idea about the use of "auto" keyword?
Why we not create function inside function.
What is the use of static variable in c?
Write a program to print factorial of given number using recursion?
Do variables need to be initialized?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?