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

Are c and c++ the same?

627


What is void main ()?

613


What are c identifiers?

629


How can I sort a linked list?

635


What is c method?

537






How can I get random integers in a certain range?

613


What does c mean in standard form?

599


In C programming, how do you insert quote characters (‘ and “) into the output screen?

895


about c language

1606


What is the Purpose of 'extern' keyword in a function declaration?

654


How important is structure in life?

592


What is the difference between single charater constant and string constant?

625


simple program of graphics and their output display

1469


How many types of arrays are there in c?

595


Create a simple code fragment that will swap the values of two variables num1 and num2.

813