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


Please Help Members By Posting Answers For Below Questions

How are Structure passing and returning implemented by the complier?

719


Do pointers take up memory?

666


difference between object file and executable file

6102


What are the primitive data types in c?

579


What are the data types present in c?

631






Where are some collections of useful code fragments and examples?

721


Explain what is output redirection?

670


What is #line?

615


if p is a string contained in a string?

1409


in iso what are the common technological language?

1639


What is the usage of the pointer in c?

608


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

1415


What is I ++ in c programming?

630


What are the valid places to have keyword “break”?

656


How can I do peek and poke in c?

623