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
Why is c platform dependent?
If I have a char * variable pointing to the name of a function ..
What is static identifier?
Why do we use return in c?
What are the main characteristics of c language describe the structure of ac program?
Is c easy to learn?
What is a newline escape sequence?
What is the difference between the expression “++a” and “a++”?
What is a struct c#?
Explain how many levels deep can include files be nested?
Define Spanning-Tree Protocol (STP)
What 'lex' does?
Can a program have two main functions?
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.
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above