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 is a structure member in c?
Why do we use & in c?
What are valid signatures for the Main function?
Is it better to use malloc() or calloc()?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Tell me what are bitwise shift operators?
How many parameters should a function have?
Explain can you assign a different address to an array tag?
Explain what are preprocessor directives?
Explain how can you tell whether two strings are the same?
Who invented b language?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Can true be a variable name in c?
Explain what is the benefit of using const for declaring constants?
What does & mean in scanf?