Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Where is c used?

0 Answers  


what is the associativity of bitwise OR operator?

1 Answers  


wap to print "hello world" without using the main function.

22 Answers   TCS, Wipro,


What is the basic structure of c?

0 Answers  


Should I learn data structures in c or python?

0 Answers  


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

0 Answers   L&T,


x=y=z=1 z=++x||++y&&++z Printf("%%%d";xyz) what is the values of x,y and z?????

3 Answers  


what is the differnce between AF_INET and PF_INET?

5 Answers   Systems Plus, Wipro,


12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV

4 Answers   Accenture,


WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?

28 Answers   3D PLM, Code Studio, Deltech, IBM,


void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?

4 Answers   Groupon,


What is integer constants?

0 Answers  


Categories