~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;
}
Retrieved from http://wiki.zeropage.org/wiki.php/abced reverse
last modified 2021-02-07 05:31:35