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 |
Why is c still so popular?
dynamically allocate memory for linear array of n integers,store some elements in it and find some of them
a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6
How can I trap or ignore keyboard interrupts like control-c?
What is getch?
How do you use a 'Local Block'?
how to swap two integers 1 and 32767 without using third variable
find largest of 3 no
What is a program flowchart and how does it help in writing a program?
What are categories used for in c?
write a program that explain #define and # undef directive
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.