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

Discussion

Some types and macros defined under the header file stddef.h may be defined under other header files too.

  • A.True
  • B.False

Answer: A

Correct answer: True

<stddef.h> defines size_t, ptrdiff_t, wchar_t, NULL and offsetof - and several of these are also defined by other headers, so that a program including <stdio.h> gets size_t and NULL without asking. Repeating an identical definition is harmless.

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

Post your comment

Please log in or register to post a comment.