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
Are the variables argc and argv are always local to main?
What are 'near' and 'far' pointers?
Explain what is the purpose of "extern" keyword in a function declaration?
Is array name a pointer?
What is your stream meaning?
What is the difference between variable declaration and variable definition in c?
How can I write a function analogous to scanf?
What is the difference between single charater constant and string constant?
What is the use of ?: Operator?
How many types of errors are there in c language? Explain
what are # pragma staments?
Do character constants represent numerical values?
What are external variables in c?
What is line in c preprocessor?
What is function what are the types of function?