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 / subbu[iit kgp]
if it is assumed that there is a semicolon after the
function prototype declaration of show(), then answer is A.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Explain what are the different data types in c?
How can you avoid including a header more than once?
What is the difference between a free-standing and a hosted environment?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Can a variable be both static and volatile in c?
Write a program to identify if a given binary tree is balanced or not.
Can a pointer point to null?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is a stream?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is 2c dna?
What is the basic structure of c?
Why doesnt the call scanf work?
Is there any possibility to create customized header file with c programming language?
i want to know the procedure of qualcomm for getting a job through offcampus