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

Discussion

A short integer is at least 16 bits wide and a long integer is at least 32 bits wide.

  • A.True
  • B.False

Answer: A

Correct answer: True

The standard sets minimum widths, not exact ones: short must be at least 16 bits and long at least 32, with int at least 16 and long long at least 64. It also requires the ordering char ≤ short ≤ int ≤ long ≤ long long. Actual widths vary by platform, which is why <stdint.h> offers fixed-width types.

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

Post your comment

Please log in or register to post a comment.