When do we need malloc????
for example, I declare
char *str1;
char *str2;
str1="Testing string 1";
strcpy(str2,str1);
Can I do that???
or I need to have some memory for str2 by:
str2=(char*) malloc(strlen(str1)+1) ????
if no need to do that, when we need "malloc"??
Thx......