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 a class c rental property?
What is the value of h?
Why C language is a procedural language?
which is an algorithm for sorting in a growing Lexicographic order
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What is a void pointer in c?
What are pointers? Why are they used?
Linked lists -- can you tell me how to check whether a linked list is circular?
In a header file whether functions are declared or defined?
Why void main is used in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
hi any body pls give me company name interview conduct "c" language only
Explain how can I remove the trailing spaces from a string?
What is logical error?
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.