| int *ptr_to_number(int x) {
|
| int *stored_x = malloc(sizeof int);
|
| stored_x = x;
|
| return &stored_x;
|
| }
|
|
|
| void make_array() {
|
| int *a[2] = {0};
|
| a[0] = ptr_to_number(1000);
|
| a[1] = ptr_to_number(2000);
|
| free(a[0]);
|
| free(a[1]);
|
| }
|