e***c 发帖数: 68 | 1 19. In C & C++, int denotes the integer type and that depends on the target
machine. On a 16-bit processor(8086),
integers are 2 bytes. On a 32-bit processor (Sun SPARC), they are 4-byte qua
ntities. On an Intel Pentium, the
integer type of C & C++ depends on the operating system: DOS/Win3.1, 2 bytes
; 32-bit Windows, 4 bytes. In Java,
the sizes of allnumeric types are platform independents, which is 4 bytes.
20. In C++, bool and integer is almost the same it in practice, we do not di
scriminate |
|