Question: [ 1 1 points ] Write a function in C + + that reverses the characters in a string. The function prototype should look like

[11 points] Write a function in C++ that reverses the characters in a string. The function prototype should look like the following, where the input string is str2 and the output string, i.e., the reverse copy of str2, is str1.(Hint: This can be considered as a string copy starting from the back end of str2.)
void strcpyr(char str1[], char str2[]);
 [11 points] Write a function in C++ that reverses the characters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!