πŸ“Š C Programming
Q. What happens if you dereference a NULL pointer?
  • (A) Returns 0
  • (B) Segmentation fault
  • (C) Prints NULL
  • (D) Undefined result
πŸ’¬ Discuss
βœ… Correct Answer: (B) Segmentation fault

Explanation: Dereferencing NULL is illegal and causes a segmentation fault.

Explanation by: Mr. Dubey
Dereferencing NULL is illegal and causes a segmentation fault.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
45
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate