10. 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 / vaibhav
c)the compiler will generate an error
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain modulus operator. What are the restrictions of a modulus operator?
Write a program to reverse a linked list in c.
What is scope and lifetime of a variable in c?
Explain the difference between malloc() and calloc() function?
Why void main is used in c?
Explain data types & how many data types supported by c?
What are structure types in C?
Why flag is used in c?
List some basic data types in c?
What are the various types of control structures in programming?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Explain what is a static function?
Differentiate between #include<...> and #include '...'
What is c mainly used for?
What is meant by gets in c?