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 / manjeet
The compiler will generate an error because the is no ";"
semicolon after the prototype declaration of show function
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can a string be converted to a number?
What is the code for 3 questions and answer check in VisualBasic.Net?
Write a program to swap two numbers without using third variable in c?
How we can insert comments in a c program?
Explain how do you determine whether to use a stream function or a low-level function?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is the deal on sprintf_s return value?
What are the advantages of using new operator as compared to the function malloc ()?
Is there a way to switch on strings?
c language interview questions & answer
Which is the best website to learn c programming?
What is this pointer in c plus plus?
How important is structure in life?
Is c is a middle level language?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..