void main_source(char * &data);void main(){char * data;data=NULL;main_source(data);{char dest[100];memset(dest, 'C', 100-1);memcpy(dest, data, strlen(dest)*sizeof(char));dest[100-1]='\0';printLine(dest);delete [] data;}}void main_source(char * &data){data=new char[50];}
void main_source(char * &data);static void main(){char * data;data=NULL;main_source(data);{char dest[100];memset(dest, 'C', 100-1);memcpy(dest, data, strlen(dest)*sizeof(char));dest[100-1]='\0';printLine(dest);delete [] data;}}void main_source(char * &data){data=new char[100];}