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

Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture,


how to find out the union of two character arrays?

2 Answers  


Design a program using an array that searches a number if it is found on the list of the given input numbers and locate its exact location in the list.

4 Answers  


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

0 Answers   Huawei,


Why do we need volatile in c?

0 Answers  






How important is structure in life?

0 Answers  


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

0 Answers   HCL,


#define d 10+10 main() { printf("%d",d*d); }

6 Answers  


what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

7 Answers   Cadence, JNTU, Zen Technologies,


Write a program to add a given duration with time(24hrs format)

1 Answers   Protech,


User define function contain thier own address or not.

2 Answers  


1,1,5,17,61,217,?,?.

3 Answers   Apple,


Categories