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.
cout << reverse(tab,3);
Output: hgfdecba // d is on same position- promeq April 24, 2020
Open Chat in New Window