proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / vignesh1988i
if it is called for second time also ,it will be 10 only but
in a different thought....
static keyword is only one time initilization....if the
compailer when again reads the same line it blindly ignores
it and print the latest value of yhat static variable
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Subtract Two Number Without Using Subtraction Operator
What does %d do?
program for reversing a selected line word by word when multiple lines are given without using strrev
Define the scope of static variables.
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is the maximum length of an identifier?
Give me the code of in-order recursive and non-recursive.
What does volatile do?
How can I split up a string into whitespace-separated fields?
Explain what are multidimensional arrays?
Explain what does a function declared as pascal do differently?
What is break in c?
Combinations of fibanocci prime series
Are pointers really faster than arrays?
By using C language input a date into it and if it is right?