reverse function with constance element c++

write the functions char * reverse (char * nap, int n) - reverse the string nap except the character at position n (and its "symmetrical" equivalent) and return the inverted string as a result.
Example:
char tab[9]="abcdefgh";
cout << reverse(tab,3);
Output: hgfdecba // d is on same position
- promeq April 24, 2020Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.