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
Linked lists -- can you tell me how to check whether a linked list is circular?
What are extern variables in c?
What is an lvalue in c?
how could explain about job profile
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
How can I sort a linked list?
can anyone please tell about the nested interrupts?
Explain argument and its types.
What are examples of structures?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is infinite loop?
What are the properties of union in c?
What happens if a header file is included twice?
What is a far pointer in c?
What is pre-emptive data structure and explain it with example?