#include <iostream>
void Dvachnut(char *charP)
{
charP = new char[5];
charP[0] = '2';
charP[1] = 'c';
charP[2] = 'h';
charP[3] = '\0';
}
int main()
{
char *p = 0;
Dvachnut(p);
std::cout << p[1];
delete[] p;
getchar();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp2b2lkIER2YWNobnV0KGNoYXIgKmNoYXJQKQp7CgljaGFyUCA9IG5ldyBjaGFyWzVdOwoJY2hhclBbMF0gPSAnMic7CgljaGFyUFsxXSA9ICdjJzsKCWNoYXJQWzJdID0gJ2gnOwoJY2hhclBbM10gPSAnXDAnOwp9CmludCBtYWluKCkKewoJY2hhciAqcCA9IDA7CglEdmFjaG51dChwKTsKCXN0ZDo6Y291dCA8PCBwWzFdOwoJZGVsZXRlW10gcDsKCglnZXRjaGFyKCk7CglyZXR1cm4gMDsKfQ==