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



10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn&qu..

Answer / manju

The answer is c.

the compiler will generate an error.

Is This Answer Correct ?    6 Yes 1 No

10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn&qu..

Answer / hanumant

C)the compiler will generate an error

Is This Answer Correct ?    5 Yes 1 No

10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn&qu..

Answer / hanumant

A) it will compile & nothing will be printed when it is
executed.

Is This Answer Correct ?    5 Yes 4 No

10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn&qu..

Answer / vaibhav

c)the compiler will generate an error

Is This Answer Correct ?    0 Yes 0 No

10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn&qu..

Answer / hanumant

D)the compiler will generate a warning

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More C Interview Questions

Why is c still so popular?

0 Answers  


dynamically allocate memory for linear array of n integers,store some elements in it and find some of them

1 Answers  


a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6

7 Answers   TCS,


How can I trap or ignore keyboard interrupts like control-c?

0 Answers  


What is getch?

0 Answers  






How do you use a 'Local Block'?

0 Answers   Ericsson,


how to swap two integers 1 and 32767 without using third variable

11 Answers   Microsoft, TCS,


find largest of 3 no

8 Answers  


What is a program flowchart and how does it help in writing a program?

0 Answers  


What are categories used for in c?

0 Answers  


write a program that explain #define and # undef directive

1 Answers  


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.

0 Answers  


Categories