difference between malloc and calloc functin in c programming 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}