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
Who invented bcpl language?
Can we access the array using a pointer in c language?
How does #define work?
How do I send escape sequences to control a terminal or other device?
Why can’t we compare structures?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Explain why C language is procedural?
Explain what is the benefit of using #define to declare a constant?
Write a function that will take in a phone number and output all possible alphabetical combinations
Can a program have two main functions?
What is strcpy() function?
Explain how can I convert a number to a string?
Define macros.
What should malloc() do?
Why c is procedure oriented?