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


Please Help Members By Posting Answers For Below Questions

Explain what are the different data types in c?

993


How can you avoid including a header more than once?

785


What is the difference between a free-standing and a hosted environment?

930


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....

1764


Can a variable be both static and volatile in c?

843


Write a program to identify if a given binary tree is balanced or not.

955


Can a pointer point to null?

829


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

912


What is a stream?

913


#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); }

868


What is 2c dna?

863


What is the basic structure of c?

828


Why doesnt the call scanf work?

955


Is there any possibility to create customized header file with c programming language?

867


i want to know the procedure of qualcomm for getting a job through offcampus

2244