A

Admin • 833K Points
Coach

Q. What does calloc() do differently than malloc()?

  • (A) Allocates memory of zero bytes
  • (B) Initializes allocated memory to zero
  • (C) Faster than malloc
  • (D) Returns a double pointer
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

calloc() sets all allocated bytes to zero, unlike malloc().

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.