Top

Discussion

Why is calloc() function used for?

  • A.allocates the specified number of bytes
  • B.allocates the specified number of bytes and initializes them to zero
  • C.increases or decreases the size of the specified block of memory and reallocates it if needed
  • D.calls the specified block of memory for execution

Answer: B

allocates the specified number of bytes and initializes them to zero.

No comment is present. Be the first to comment.
Loading…

Post your comment