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 / vadivelt

Program should give compiler error. Cos, u r trying to
allocate two different storage area to sigle int
variable 'i'.

ie.,
The below statement is invalid.
extern static int i;

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c platform dependent?

623


If I have a char * variable pointing to the name of a function ..

652


What is static identifier?

704


Why do we use return in c?

569


What are the main characteristics of c language describe the structure of ac program?

613






Is c easy to learn?

559


What is a newline escape sequence?

665


What is the difference between the expression “++a” and “a++”?

650


What is a struct c#?

601


Explain how many levels deep can include files be nested?

626


Define Spanning-Tree Protocol (STP)

643


What 'lex' does?

718


Can a program have two main functions?

572


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

1577


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

615