proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / jeevan
There is not increment statement. In this case, always it
returs 10 only. even if 'i' is not static type, then also
it returns 10 only....... for confusing in interview, they
might have used 'static' key word here.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a example of a variable?
What is 2 d array in c?
Where is c used?
Describe the difference between = and == symbols in c programming?
What is #include conio h?
Write a C program in Fibonacci series.
What are the benefits of c language?
Why is struct padding needed?
When should a type cast be used?
Do you know pointer in c?
What are high level languages like C and FORTRAN also known as?
What are linked lists in c?
Can you write the algorithm for Queue?
What are qualifiers in c?
Explain the binary height balanced tree?