#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char *name;
name = new char[5];
name = "asdf";
name = "asdf" "asdf";
cout << name << endl;
return 0;
}
결과 : asdfasdf
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char *name;
name = new char[5];
name = "asdf";
name = "asdf" "asdf";
cout << name << endl;
return 0;
}
결과 : asdfasdf