Q. The differences between malloc( ) and calloc() are: (Solved)

1. malloc is used for dynamic allocation of memory, while cal:1c can\t be used for that purpose

2. malloc needs only one argument. while cal loc needs two.

3. unlike malloc, calloc allocates memory and initializes it to 0.

4. both (b) and ©

  • d. both (b) and ©
Subscribe Now

Get All Updates & News