void main_sink(struct_type my_struct);void main(){twointsclass * data;struct_type my_struct;{twointsclass data_buf[100];{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){twointsclass * data=my_struct.a;printIntLine(data[0].a);delete [] data;}
void main_sink(struct_type my_struct);static void main(){twointsclass * data;struct_type my_struct;{twointsclass * data_buf=new twointsclass[100];{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}my_struct.a=data;main_sink(my_struct);}void main_sink(struct_type my_struct){twointsclass * data=my_struct.a;printIntLine(data[0].a);delete [] data;}