U E D R , A S I H C RSS

데블스캠프2006/화요일/pointer/문제2/이장길

~cpp

#include <iostream>
using namespace std;

void main()
{
	char spell[6] = "abced";
	char reverse[6];
	int i;

	
	for(i=0;i<5;i++){
		reverse[4-i] = spell[i];
	}

	reverse[5] = '\0';

	cout << reverse << endl;

	
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:07
Processing time 0.0123 sec