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
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What are the types of c language?
What is data structure in c programming?
Why is C language being considered a middle level language?
What is #include cctype?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
how do you programme Carrier Sense Multiple Access
Add Two Numbers Without Using the Addition Operator
What is a string?
When is the “void” keyword used in a function?
Is linux written in c?
What are structures and unions? State differencves between them.
What are logical errors and how does it differ from syntax errors?
What is the use of static variable in c?