#include #include const int MAX_LENGTH = 30; typedef char stringType[MAX_LENGTH]; void writeBackward(stringType S, int Size) { if (Size > 0) { cout << S[Size-1]; writeBackward(S, Size-1); } } void main() { stringType theString; cout << "Enter a string: "; cin.getline(theString, MAX_LENGTH); writeBackward(theString, strlen(theString)); }