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

Discussion

Which of the following macros is not defined?

  • A.ULONG_MIN
  • B.LONG_MIN
  • C.ULONG_MAX
  • D.LONG_MAX

Answer: A

Correct answer: ULONG_MIN

There is no ULONG_MIN, and there could be no use for one: the minimum of an unsigned type is always 0, so the standard defines only the maxima for unsigned types. Signed types get both, hence LONG_MIN and LONG_MAX.

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

Post your comment

Please log in or register to post a comment.