Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void reverseWithIndices(char array[] , int max){
- //Check for the size of the entered string
- long j = strlen(array) - 2;
- char tmp;
- for(int i = 0; i < j; i++){
- tmp = array[i];
- array[i] = array[j];
- array[j] = tmp;
- j--;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement