U E D R , A S I H C RSS

데블스캠프2006/화요일/pointer/문제2/정승희

~cpp
#include<iostream>
using namespace std;
void main()
{
	char a[6]="abcde";
	cout<<a<<endl;
	char b[6]={0,};
	
	for(int i=4;i>=0;i--)//맨앞에 a[6]=0이라서 안됨
	{
		b[4-i]=a[i];
	}
	cout<<b<<endl;
}

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