Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

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

From ZeroWiki
#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;
}

데블스캠프2006/화요일/pointer