~cpp #include<iostream> using namespace std; int main() { char str[6]="abced" ,a[6]={0,}; int i; for(i=4; i>=0 ; i--) { a[4-i]=str[i]; } cout <<a; return 0; }