Ah now you've provided code so its ok for us to give you some
Code:for (index=0; string1[index] != '\0'; index++) ; // Empty body. We are just trying to get index to be at the null character for (--index; // index was pointing at the null, we need to go to the previous character index >= 0; // when index == 0 we are at the first character index--) // step back to the previous character cout << string1[index] << endl;