Fixed Width Integer Types since C99

suggest change

The header <stdint.h> provides several fixed-width integer type definitions. These types are optional and only provided if the platform has an integer type of the corresponding width, and if the corresponding signed type has a two’s complement representation of negative values.

See the remarks section for usage hints of fixed width types.

/* commonly used types include */
uint32_t u32 = 32; /* exactly 32-bits wide */

uint8_t u8 = 255;  /* exactly 8-bits wide */

int64_t i64 = -65  /* exactly 64 bit in two's complement representation */

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents