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
What is the difference between union and structure in c?
why return type of main is not necessary in linux
Is a house a shell structure?
What are the types of type specifiers?
Can main () be called recursively?
Explain the process of converting a Tree into a Binary Tree.
Explain output of printf("Hello World"-'A'+'B'); ?
What is the method to save data in stack data structure type?
can any one tel me wt is the question pattern for NIC exam
Difference between Function to pointer and pointer to function
Is it possible to execute code even after the program exits the main() function?
Is it better to use a macro or a function?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Why is it that not all header files are declared in every C program?
What is meant by operator precedence?