~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";	
}

----
데블스캠프2006/화요일/pointer
Retrieved from http://wiki.zeropage.org/wiki.php/데블스캠프2006/화요일/pointer/문제2/성우용
last modified 2021-02-07 05:29:06