proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / saurabh
does static function increment the counter variable by
one?? if not then how can u say that i value will be
incremented by 1.
finally the i value will be 10 only. it will not
increment.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of using new operator as compared to the function malloc ()?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
How will you declare an array of three function pointers where each function receives two ints and returns a float?
How can I recover the file name given an open stream or file descriptor?
What is the difference between array_name and &array_name?
how can f be used for both float and double arguments in printf? Are not they different types?
How can you access memory located at a certain address?
What is the process to generate random numbers in c programming language?
What do you mean by scope of a variable in c?
Explain main function in c?
How can a program be made to print the name of a source file where an error occurs?
how to capitalise first letter of each word in a given string?
Explain what are the standard predefined macros?
What is scanf () in c?
Can we change the value of #define in c?