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
Is c is a procedural language?
Explain what are the advantages and disadvantages of a heap?
What is the difference between exit() and _exit() function in c?
What are the applications of c language?
What is the purpose of scanf() and printf() functions?
What are shell structures used for?
How can you tell whether two strings are the same?
What is the role of && operator in a program code?
When is a void pointer used?
Why c is a mother language?
What is pass by value in c?
Why structure is used in c?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What is the size of array float a(10)?
What is a structure and why it is used?