I am trying to reallocate memory for a 2D array element, not the full array But it's not working.
Note: I am new to the C language.
int** resultIndexArr = malloc(sizeof(int**) * 2);
resultIndexArr[0] = realloc(resultIndexArr[0], sizeof(int *) +sizeof(resultIndexArr[0]));
printf("%lu", sizeof(resultIndexArr[0])); // prints 8; but it should be 16;