Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdint.h>
- #define PRINT_SIZE(t) std::cout << "Size of " #t ": " << sizeof(t) << std::endl
- int main()
- {
- PRINT_SIZE(int8_t);
- PRINT_SIZE(int_fast8_t);
- PRINT_SIZE(int16_t);
- PRINT_SIZE(int_fast16_t);
- PRINT_SIZE(int32_t);
- PRINT_SIZE(int_fast32_t);
- PRINT_SIZE(int64_t);
- PRINT_SIZE(int_fast64_t);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement