Re:Computer Scientists’ Trivia
by pklausler on Thursday February 02, 2017 @12:35PM
(#13552459)
> You can not rely on any further information about them.
Not entirely true. One may assume that sizeof(short) <= sizeof(int) <= sizeof(long). In particular, one may cast from short to int and back without loss of information, and likewise from short to long and from int to long.
Not entirely true. One may assume that sizeof(short) <= sizeof(int) <= sizeof(long). In particular, one may cast from short to int and back without loss of information, and likewise from short to long and from int to long.