const int SIZE = 100; char a[SIZE]; cin.getline(a, SIZE); size_t nChar = strlen(a); char chTmp; for(size_t i = 0, j = nChar-1; i < j; ++i, --j) { chTmp = a[i]; a[i] = a[j]; a[j] = chTmp; } cout << a; 2.