If you want a dynamically allocated array of`int size`, there two ways you can get that in C:

```
int* array = new int [size]; //method 1
int* array2 = malloc (sizeof(int) * size); //method 2

```

When should you use each method?