difference between calloc and malloc code example
Example: difference between malloc and calloc and realloc
if (!(int *ptr = malloc(sizeof(int) * NUM_ELEM))){ // ERROR CONDITION HERE}
if (!(int *ptr = malloc(sizeof(int) * NUM_ELEM))){ // ERROR CONDITION HERE}