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
How do you print an address?
What is difference between scanf and gets?
What will the preprocessor do for a program?
define string ?
What is call by value in c?
Explain how does free() know explain how much memory to release?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What library is sizeof in c?
What are the string functions? List some string functions available in c.
Which is better oop or procedural?
How can I recover the file name given an open stream or file descriptor?
List some of the dynamic data structures in C?
What is #include cctype?
Explain the difference between null pointer and void pointer.