Answer the question
In order to leave comments, you need to log in
Need an integer data type of 8 bytes and 3 bytes C++, how to do it?
I need an integer (preferably another unsigned type) data type of 8 and 3 bytes C++, how to do it? Without using classes. To be cross-platform Windows / Linux.
Answer the question
In order to leave comments, you need to log in
Use cstdint . 3-byte type does not exist, use 4-byte type.
#include <cstdint>
int64_t foo; uint64_t bar; // 8 байт. Знаковый и беззнаковый.
int32_t foo; uint32_t bar; // 4 байта. Знаковый и беззнаковый.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question