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 was noalias and what ever happened to it?
what is the coding of display the factorial of a number using array and function?
main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?
Is c is a procedural language?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
Read two numbers from keyboard and find maximum of them?
What are the types of variables in c?
why do we use pointer instead directly acessing the data?
How can a program be made to print the name of a source file where an error occurs?
Write a program to compute the following 1!+2!+...n!
What is Lazy evaluation in C? Give an example.
What is the difference between far and near in c?