A

Admin • 833K Points
Coach

Q. What happens if you dereference a NULL pointer?

  • (A) Returns 0
  • (B) Segmentation fault
  • (C) Prints NULL
  • (D) Undefined result
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

Dereferencing NULL is illegal and causes a segmentation fault.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.