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

CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION.

15 Answers  


What is array of structure in c?

0 Answers  


what is the difference between normal variables and pointer variables..............

15 Answers   HP, Infosys, Satyam, Vivekanand Education Society,


Describe newline escape sequence with a sample program?

0 Answers  


can we change the default calling convention in c if yes than how.........?

0 Answers   Aptech,






List the difference between a While & Do While loops?

0 Answers   Accenture,


What are near, far and huge pointers?

0 Answers   Hexaware, Thomson Reuters, Virtusa,


code for bubble sort?

1 Answers  


write a C code To reverse a linked list

2 Answers   Motorola, Wipro,


What is an arrays?

0 Answers  


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

0 Answers   KPIT,


How we can insert comments in a c program?

0 Answers  


Categories