cstdint


1. Integer Constant Ranges

#include <cstdint>

int main() {
  std::int64_t value = 123456789012345;  // 64-bit integer with range [-9223372036854775808, 9223372036854775807]
  return 0;
}

2. Fixed-Size Integers

#include <cstdint>

int main() {
  std::uint8_t small_value = 255;  // 8-bit unsigned integer with range [0, 255]
  std::int32_t medium_value = -12345;  // 32-bit signed integer with range [-2147483648, 2147483647]
  return 0;
}

3. Pointer Size

#include <cstdint>

int main() {
  void* pointer = nullptr;
  std::ptrdiff_t pointer_size = std::ptrdiff_t(pointer);  // Size of a pointer in bytes
  return 0;
}

4. Boolean Type

5. Maximum and Minimum Values

6. Constants Macros

7. Platform-Independent Sizes

8. Enumerated Types

9. Bit Fields

10. Byte Swapping

11. Fixed-Point Arithmetic

12. Pointer Arithmetic

13. Address Calculations

14. Bit Manipulation

15. Memory Alignment

16. Union Size

17. Array Sizes

18. Function Pointers

19. Converting to/from Strings

20. Bitwise Shift Operations

21. Pointer Initialization

22. C-Style Arrays

23. Type Casting

24. Function Return Types

25. STL Container Element Sizes

26. Memory Management

27. Bitwise OR Operation

28. Bitwise AND Operation

29. Bitwise XOR Operation

30. Bitwise NOT Operation

31. Bitwise Left Shift Operation

32. Bitwise Right Shift Operation

33. Bitwise Left Rotate Operation

34. Bitwise Right Rotate Operation

35. Boolean Operations

36. Arithmetic Operations

37. Relational Operations

38. Parentheses

39. Assignment

40. Casting

41. Conditional

42. Loops

43. Arrays

44. Functions

45. Pointers

46. Structures

47. Unions

48. Bit Fields

49. Type Aliases

50. Macros