Multiple choice

The function calloc is used

  1. to free memory space

  2. to allocate memory space

  3. both of the above

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The calloc function stands for 'contiguous allocation' and is used to allocate memory space for an array of elements, initializing them to zero.