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
Why c is a mother language?
What is wrong with this program statement?
What is pointers in c?
What is meant by recursion?
What is the code in while loop that returns the output of given code?
What is a good way to implement complex numbers in c?
What are the applications of c language?
Why main function is special give two reasons?
When is a null pointer used?
how to construct a simulator keeping the logical boolean gates in c
What is the use of getchar() function?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What are structures and unions? State differencves between them.
What is the difference between procedural and functional programming?
What are comments and how do you insert it in a C program?