this is my code:
void foo(int num) { int* pArr = (int*)malloc(num * sizeof(int)); // allocate array of \'sale\' structs for each region for (int i