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
Differentiate between null and void pointers.
What is stack in c?
Write a code on reverse string and its complexity.
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
How can a program be made to print the line number where an error occurs?
What is a protocol in c?
What are the advantages of external class?
Are local variables initialized to zero by default in c?
How can I use a preprocessorif expression to ?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is difference between structure and union with example?
What is the role of && operator in a program code?
Explain what is the difference between #include and #include 'file' ?
Is there any demerits of using pointer?
Difference between Function to pointer and pointer to function