extern static int i
func()
{
i =10;
i++;
printf("%d \n",i);
}
main()
{
i =20;
printf("%d \n",i);
func();
printf("%d \n",i);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
What is a lvalue
Can we increase size of array in c?
What does 3 mean in texting?
What is the diffences between Windows XP and Windows Visa
what is use#in c
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is the use of header?
how to write a c program to print list of fruits in alpabetical order?
What is local and global variable in c?
What is main return c?
Tell us two differences between new () and malloc ()?