differences between malloc and calloc 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}