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


Please Help Members By Posting Answers For Below Questions

What is the difference between declaring a variable and defining a variable?

724


Do array subscripts always start with zero?

784


Why do we use stdio h and conio h?

639


What does c mean in basketball?

563


How many bytes is a struct in c?

725






What are register variables? What are the advantage of using register variables?

687


Why is it usually a bad idea to use gets()? Suggest a workaround.

906


What does == mean in texting?

665


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

656


Explain what is the difference between functions abs() and fabs()?

621


How can you avoid including a header more than once?

564


What is difference between structure and union in c programming?

569


What is array of pointers to string?

570


How are portions of a program disabled in demo versions?

751


What is include directive in c?

646