Basic question.
char new_str[]=\"\"; char * newstr;
If I have to concatenate some data into it or use string functions like strcat/substr/
If you're in c++ why not use std::string for all your string needs? Especially anything dealing with concatenation. This will save you from a lot of problems.