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
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What are linker error?
what are the 10 different models of writing an addition program in C language?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Should I learn c before c++?
What is linear search?
What is indirection?
Are global variables static in c?
What is the main difference between calloc () and malloc ()?
How many types of errors are there in c language? Explain
Why do we use int main?
What are loops in c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Explain threaded binary trees?
What is the advantage of c?