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 does volatile do?

567


What is scanf_s in c?

633


Are negative numbers true in c?

600


What is build process in c?

645


What is the 'named constructor idiom'?

640






What is double pointer in c?

588


How do we declare variables in c?

571


Write a program that accept anumber in words

1252


What are data types in c language?

586


What is pointer and structure in c?

574


What is file in c preprocessor?

654


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5056


What is derived datatype in c?

635


Explain modulus operator.

597


Can you please explain the difference between malloc() and calloc() function?

619