Suppose I\'ve two code samples for creating a integer array of 10 elements:
int *pi = (int*)0; realloc(pi,10);
and the other is the one that i
C requires that the pointer passed to realloc must be a pointer obtained from malloc, calloc or realloc function call (or a null pointer).
realloc
malloc
calloc