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
Explain the difference between malloc() and calloc() function?
What are types of functions?
Differentiate between new and malloc(), delete and free() ?
How do I convert a string to all upper or lower case?
Write a program to use switch statement.
Can you please compare array with pointer?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
How do I use strcmp?
What would be an example of a structure analogous to structure c?
Is it better to bitshift a value than to multiply by 2?
What is nested structure?
Can 'this' pointer by used in the constructor?
What is c programing language?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
How can I open a file so that other programs can update it at the same time?