Answer to Question #182030 in Programming & Computer Science for wea

Question #182030

What is the output of following function, if called as foo( rr,0,6) ? arr content as follows: a-b-c- d-e-f 

void foo(char arr[], int i, int s) 

if(i>=s)   return ; 

cout<< arr[i]; 

if * (i + 1 < s)

foo(arr, i+2,s) ; 

cout<<arr [ i]; }


Select one : 

a. a c e a c e 

b. a c e e c a 

c. a c b e e a

d. a d f f d a


1
Expert's answer
2021-04-19T22:57:18-0400
Answer:
b. a c e e c a 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS