Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#include <iostream>
using namespace std;
void reverse(const char []);
int main() {
const char s[] = "!olleH";
cout << s << endl;
reverse(s);
cin.get();
}
// Show m parameter in reverse mode
void reverse(const char m[]) {
if (*(m+1))
reverse(m+1);
cout << m[0];
}

You might also like