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
What are the types of operators in c?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Is c high or low level?
What is meant by int main ()?
What is the function of multilevel pointer in c?
Is fortran still used in 2018?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What type of function is main ()?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
When is a null pointer used?
the question is that what you have been doing all these periods (one year gap)
write a c program in such a way that if we enter the today date the output should be next day's date.
What is the difference between union and structure in c?
How to write a code for reverse of string without using string functions?
What library is sizeof in c?