12345678910
char* cpycstr(char* to, const char* from) { while(*to++ = *from++);//it seems that to is resized, without having to reallocate return to; } char a[0]; const char* cptr = "Hello World!"; cpycstr(a, cptr); std::cout << a ;