~cpp #include<iostream> using namespace std; void main() { int i; char a[8]="reverse"; char b[8]; cout<<a; cout<<"\n"; for(i=0;i<7;i++) b[i] = a[6-i]; b[7] = '\0'; cout<<b; cout<<"\n"; }