void main_source(int * &data){data=NULL;data=(int *)realloc(data, 100*sizeof(int));}void main(){int * data;data=NULL;main_source(data);delete [] data;}
static void main_source(int * &data){data=new int[100];}static void main(){int * data;data=NULL;main_source(data);delete [] data;}