Machine-translated by Google. Questions are authored in English.
Top

Discussion

NULL is the macro defined in the header string. h.

  • A.true
  • B.false

Answer: A

Correct answer: true

NULL, the null pointer constant, is defined in several headers, and <string.h> is one of them - along with <stdio.h>, <stdlib.h>, <stddef.h> and others. Repeating the definition is harmless because it is identical each time, so a program gets NULL from whichever header it happens to include.

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

Post your comment

Please log in or register to post a comment.