A

Admin • 833K Points
Coach

Q. What is the return value of malloc() if memory allocation fails?

  • (A) 0
  • (B) NULL
  • (C) -1
  • (D) Nothing
  • Correct Answer - Option(B)
  • Views: 33
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

malloc() returns NULL if it fails to allocate memory.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.