Your for loop condition is backwards. It should be i <= j
.
1
solved Strings:Not able to change contents of the string in C++ [closed]
Your for loop condition is backwards. It should be i <= j
.
1
solved Strings:Not able to change contents of the string in C++ [closed]