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


Please Help Members By Posting Answers For Below Questions

What is a structure member in c?

560


Why do we use & in c?

599


What are valid signatures for the Main function?

707


Is it better to use malloc() or calloc()?

658


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

2202






Tell me what are bitwise shift operators?

666


How many parameters should a function have?

674


Explain can you assign a different address to an array tag?

653


Explain what are preprocessor directives?

636


Explain how can you tell whether two strings are the same?

593


Who invented b language?

928


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 ?

815


Can true be a variable name in c?

565


Explain what is the benefit of using const for declaring constants?

620


What does & mean in scanf?

610