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 does == mean in texting?
I have seen function declarations that look like this
Can you write the algorithm for Queue?
Explain can static variables be declared in a header file?
What language is lisp written in?
What is I ++ in c programming?
What is calloc malloc realloc in c?
How do you convert strings to numbers in C?
Is printf a keyword?
How is pointer initialized in c?
What are the disadvantages of c language?
develop algorithms to add polynomials (i) in one variable
code for replace tabs with equivalent number of blanks
What are the 5 types of inheritance in c ++?
What is the default value of local and global variables in c?