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 |
write a program for egyptian fractions in c?
Can i use “int” data type to store the value 32768? Why?
To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.
Is malloc memset faster than calloc?
read an array and search an element
Which function in C can be used to append a string to another string?
Predict the output or error(s) for the following: 25. main() { printf("%p",main); }
C program to read the integer and calculate sum and average using single dimensional array
How does struct work in c?
Why we write conio h in c?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
what does exit() do?