No older revisions available
No older revisions available
~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"; }
~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"; }