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 does volatile do?
What is scanf_s in c?
Are negative numbers true in c?
What is build process in c?
What is the 'named constructor idiom'?
What is double pointer in c?
How do we declare variables in c?
Write a program that accept anumber in words
What are data types in c language?
What is pointer and structure in c?
What is file in c preprocessor?
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
What is derived datatype in c?
Explain modulus operator.
Can you please explain the difference between malloc() and calloc() function?