void main_sink(int * data_ptr);void main(){int data;data=-1;data=RAND32();main_sink(&data);}void main_sink(int * data_ptr){int data=*data_ptr;{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}}
static void main(){int data;data=-1;data=20;main_sink(&data);}void main_sink(int * data_ptr){int data=*data_ptr;{char * char_string;if (data > 0){char_string=new char[data];strcpy(char_string, HELLO_STRING);printLine(char_string);delete [] char_string;}else{printLine("Input is less than 0");}}}