Data Types
suggest changeRemarks
- While
charis required to be 1 byte, 1 byte is not required to be 8 bits (often also called an octet), even though most of modern computer platforms define it as 8 bits. The implementation’s number of bits percharis provided by theCHAR_BITmacro, defined in<limits.h>. POSIX does require 1 byte to be 8 bits. - Fixed-width integer types should be used sparingly. C's built-in types are chosen to be natural on each architecture. Use a fixed-width type when you need a specific width, for example in a file format or network protocol.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents