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

suppose there are five integers write a program to find larger among them without using if- else

2 Answers  


What is the difference between array_name and &array_name?

0 Answers  


Explain #pragma statements.

0 Answers  


What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture, Wipro,


Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 Answers  






write a program to remove duplicate from an ordered char array? in c

2 Answers  


How can I recover the file name given an open stream or file descriptor?

0 Answers  


Write code for atoi(x) where x is hexadecimal string.

5 Answers   Adobe,


What is the difference between macros and inline functions?

5 Answers   Global Edge, L&T,


Can the size of an array be declared at runtime?

0 Answers  


What are the advantages of external class?

0 Answers  


How can I read a directory in a C program?

2 Answers   Bright Outdoor, Wipro,


Categories