extern static int i
func()
{
i =10;
i++;
printf("%d \n",i);
}
main()
{
i =20;
printf("%d \n",i);
func();
printf("%d \n",i);

}

Answer Posted / ashwini prakash

output will be..
20
11
20

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you obtain the current time and difference between two times?

734


Tell me can the size of an array be declared at runtime?

601


What are the __date__ and __time__ preprocessor commands?

576


Can we compile a program without main() function?

637


What is a lvalue

668






What does struct node * mean?

605


What is the process to create increment and decrement stamen in c?

590


Explain is it valid to address one element beyond the end of an array?

739


What is the use of bit field?

648


What does sizeof int return?

596


Why do we use pointer to pointer in c?

603


Where define directive used?

611


Write a program to generate random numbers in c?

666


What are valid signatures for the Main function?

703


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

615