proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / suchita
the answer is 10 bcoz no increment statement in that loop. if
increment statement is there then definitely the value of
static variable is increased. otherwise it is fixed.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How can you tell whether a program was compiled using c versus c++?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
When should the volatile modifier be used?
What is a null pointer in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Process by which one bit pattern in to another by bit wise operation is?
program to convert a integer to string in c language'
what is stack , heap ,code segment,and data segment
What is property type c?
How do you override a defined macro?
Do you know the difference between exit() and _exit() function in c?
Tell us the use of fflush() function in c language?
When should the const modifier be used?
Explain pointers in c programming?
What is use of pointer?