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

Who invented bcpl language?

715


Can we access the array using a pointer in c language?

569


How does #define work?

660


How do I send escape sequences to control a terminal or other device?

624


Why can’t we compare structures?

826






In C programming, how do you insert quote characters (‘ and “) into the output screen?

906


Explain why C language is procedural?

780


Explain what is the benefit of using #define to declare a constant?

618


Write a function that will take in a phone number and output all possible alphabetical combinations

611


Can a program have two main functions?

585


What is strcpy() function?

664


Explain how can I convert a number to a string?

655


Define macros.

795


What should malloc() do?

657


Why c is procedure oriented?

586