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
What is wrong with this initialization?
Can we change the value of #define in c?
what is the syallabus of computer science students in group- 1?
Why is python slower than c?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
How to declare a variable?
Explain the use of bit fieild.
What are Macros? What are its advantages and disadvantages?
What is difference between structure and union with example?
What is the difference between NULL and NUL?
What is the difference between abs() and fabs() functions?
How can I use a preprocessorif expression to ?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
How a string is stored in c?
What is difference between union All statement and Union?