~cpp #include <iostream> using namespace std; int main() { char str1[6] = "abced" ; char str2[6]; cout << str1 << endl; for(int i = 0; i < 5 ; i++) { str2[i] = str1[4-i]; } str2[5]=str1[5]; // ๋๊ฐ์ด ๋งจ ์์ด๋ฉด ์ถ๋ ฅ๋์ง ์์, ๋ฐ๋ผ์ ๋์ ์ ์ธํ ๊ฒ reverse cout << str2 << endl; system("pause"); return 0; }