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
Answers were Sorted based on User's Feedback
Answer / manju
The answer is c.
the compiler will generate an error.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / hanumant
A) it will compile & nothing will be printed when it is
executed.
| Is This Answer Correct ? | 5 Yes | 4 No |
Explain what happens if you free a pointer twice?
What do you mean by invalid pointer arithmetic?
explain what are pointers?
How can I pad a string to a known length?
Is c functional or procedural?
Can we change the value of #define in c?
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?
Is c pass by value or reference?
How does variable declaration affect memory?
wat is the difference between array and pointer?
Add Two Numbers Without Using the Addition Operator
write a program to print sum of each row of a 2D array.