If "AaBbCc" is passed to the char

char x(*a)
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
}
what will be the output?

Answers were Sorted based on User's Feedback



If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",..

Answer / fazlur rahaman naik

the output will b cCbBaA

Is This Answer Correct ?    3 Yes 0 No

If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",..

Answer / roopa

cCbBaA

Is This Answer Correct ?    3 Yes 0 No

If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",..

Answer / ravi saini

Recursion based question........

Output wil be

cCbBaA

Is This Answer Correct ?    3 Yes 0 No

If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",..

Answer / vint

char x(char *a) // Argument Pointer declaration was missing
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
}

Output: cCbBaA

Is This Answer Correct ?    0 Yes 0 No

If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",..

Answer / roopa

cba

Is This Answer Correct ?    0 Yes 1 No

If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",..

Answer / roopa

bBcCbBaA

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

0 Answers   Wilco,


How does free() know how many bytes to free?

8 Answers  


Explain how do you generate random numbers in c?

0 Answers  


what is the code for getting the output as * ** ***

5 Answers   Caritor,


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

0 Answers  






how to execute with out main in cprogram

15 Answers   Infosys,


when to use : in c program?

2 Answers  


1.Why do you call C is middle level language? 2.Why do you call C is userfriendly language.

2 Answers  


What is the difference between i++ and i+1 ?(in terms of memory)

3 Answers   HCL,


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

0 Answers   Wilco,


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

0 Answers  


please give code for this 1 2 4 7 11 16

11 Answers   Intel, Wipro,


Categories