Returning a malloced array here does not reach the output. I always get "" as my output regardless.
int* result = (int*)malloc( sizeof(int) * *returnSize);
*returnSize is zero in the first test case
int* result = (int*)malloc( sizeof(int) * 2); result = 1; result = 2; return result;
Even if I return that, I still get "" as output.
Am I missing something? I am not great at C