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

The compiler will generate an error because the is no ";"
semicolon after the prototype declaration of show function

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c is a procedural language?

839


Explain what are the advantages and disadvantages of a heap?

868


What is the difference between exit() and _exit() function in c?

860


What are the applications of c language?

861


What is the purpose of scanf() and printf() functions?

944


What are shell structures used for?

816


How can you tell whether two strings are the same?

1048


What is the role of && operator in a program code?

815


When is a void pointer used?

927


Why c is a mother language?

758


What is pass by value in c?

815


Why structure is used in c?

839


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2583


What is the size of array float a(10)?

920


What is a structure and why it is used?

882