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
Can include files be nested?
What does s c mean on snapchat?
What are the types of data files?
What is the use of typedef in structure in c?
Is c compiled or interpreted?
Give basis knowledge of web designing ...
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Why is it usually a bad idea to use gets()? Suggest a workaround.
Explain how does flowchart help in writing a program?
Is fortran still used in 2018?
Can you please explain the difference between strcpy() and memcpy() function?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
what is the role you expect in software industry?
What are high level languages like C and FORTRAN also known as?
What are the two types of functions in c?