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


Please Help Members By Posting Answers For Below Questions

How can a string be converted to a number?

755


What is the code for 3 questions and answer check in VisualBasic.Net?

1921


Write a program to swap two numbers without using third variable in c?

868


How we can insert comments in a c program?

855


Explain how do you determine whether to use a stream function or a low-level function?

850


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1008


What is the deal on sprintf_s return value?

846


What are the advantages of using new operator as compared to the function malloc ()?

1068


Is there a way to switch on strings?

825


c language interview questions & answer

1706


Which is the best website to learn c programming?

824


What is this pointer in c plus plus?

806


How important is structure in life?

803


Is c is a middle level language?

810


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1812