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


Please Help Members By Posting Answers For Below Questions

What is a class c rental property?

620


What is the value of h?

599


Why C language is a procedural language?

625


which is an algorithm for sorting in a growing Lexicographic order

1403


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

592






What is a void pointer in c?

613


What are pointers? Why are they used?

636


Linked lists -- can you tell me how to check whether a linked list is circular?

651


In a header file whether functions are declared or defined?

635


Why void main is used in c?

564


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1712


hi any body pls give me company name interview conduct "c" language only

1673


Explain how can I remove the trailing spaces from a string?

632


What is logical error?

607


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

693