4 ms·
> (note that the size of short isn't guaranteed to be anything specifically, other than 2 <= sizeof(short) <= sizeof(int)). That isn't guaranteed. sizeof(short
by zAy0LfpBZLC8mAC 8y ago
> (note that the size of short isn't guaranteed to be anything specifically, other than 2 <= sizeof(short) <= sizeof(int)).
That isn't guaranteed. sizeof(short) and sizeof(int) are both allowed to be 1 on a system with chars at least 16 or 32 bits wide, respectively.
- int_19h 8y agoYep, you're right. Which just goes to show that these are not the types you want to be using for any kind of portable binary I/O.