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 cohesion and coupling in c?
What Is The Difference Between Null And Void Pointer?
Describe the difference between = and == symbols in c programming?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
how is the examination pattern?
What are the disadvantages of external storage class?
develop algorithms to add polynomials (i) in one variable
int far *near * p; means
What are the data types present in c?
How can a process change an environment variable in its caller?
What is the difference between text and binary modes?
What is the difference between āgā and āgā in C?
What are the back slash character constants or escape sequence charactersavailable in c?
Why should I prototype a function?