Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
Answer Posted / manjeet
Then answer wll be (B) will compile but not link
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are global variables and how do you declare them?
Explain how do you sort filenames in a directory?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Define the scope of static variables.
Can we declare function inside main?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What are the types of data structures in c?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is the difference between malloc() and calloc()?
What are file streams?
What is c language and why we use it?
What is function definition in c?
How many header files are in c?
What is the use of getchar() function?