Question: Write a function string_reverse/2. The first argument is the string and the second argument is the output. Hint: you can use the functions string_chars/2 and

Write a function string_reverse/2. The first argument is the string and the second argument is the output.

Hint: you can use the functions string_chars/2 and reverse/2 for this.

In [ ]:

%%CONSULT%Your code here

In [ ]:

string_reverse("happy","yppah").

In [ ]:

string_reverse("","").

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below To implement the stringreverse2 funct... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!