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 / vignesh1988i
according to my compailer it will have an error "function
called incorrectly"
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How many main () function we can have in a project?
Why do we need arrays in c?
What is the difference between test design and test case design?
What is wrong with this initialization?
Why is it that not all header files are declared in every C program?
Which is an example of a structural homology?
What is double pointer?
How does placing some code lines between the comment symbol help in debugging the code?
Explain what standard functions are available to manipulate strings?
What are Macros? What are its advantages and disadvantages?
Explain what is the benefit of using const for declaring constants?
What happens if header file is included twice?
What is string function c?
Who invented bcpl language?
Explain null pointer.