proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / suchita
the answer is 10 bcoz no increment statement in that loop. if
increment statement is there then definitely the value of
static variable is increased. otherwise it is fixed.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How are Structure passing and returning implemented by the complier?
Do pointers take up memory?
difference between object file and executable file
What are the primitive data types in c?
What are the data types present in c?
Where are some collections of useful code fragments and examples?
Explain what is output redirection?
What is #line?
if p is a string contained in a string?
in iso what are the common technological language?
What is the usage of the pointer in c?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What is I ++ in c programming?
What are the valid places to have keyword “break”?
How can I do peek and poke in c?