Entry
C++: Datastructure: Variable: Type: Range: Can you give an overview of the range of variable type?
Jan 21st, 2007 12:12
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 21 January 2021 - 08:57 pm --------------------
C++: Datastructure: Variable: Type: Range: Can you give an overview of
the range of variable type?
---
--- cut here: begin --------------------------------------------------
-----------------------------------------------------------------------
| NR | VARIABLE: TYPE | BIT: TOTAL | VARIABLE: RANGE |
-----------------------------------------------------------------------
01 char 8 bits -128 to 127
02 signed char 8 bits -128 to 127
03 unsigned char 8 bits 0 to 255
04 int 16 bits -32768 to 32767
05 signed int 16 bits -32768 to 32767
06 short int 16 bits -32768 to 32767
07 signed short int 16 bits -32768 to 32767
08 unsigned short int 16 bits 0 to 65635
09 unsigned int 16 bits 0 to 65635
10 long int 32 bits -2147483648 to 2147483647
11 signed long int 32 bits -2147483648 to 2147483647
12 unsigned long int 32 bits 0 to 4294967295
13 float 32 bits 3.4E-38 to 3.4E+38
14 double 64 bits 1.7E-308 to 1.7E+308
15 long double 64 bits 1.7E-308 to 1.7E+308
-----------------------------------------------------------------------
--- cut here: end -----------------------------------------------------
---
[Book: see also:
[book: source: Schildt, Herbert - Turbo C/C++ the complete reference
(2nd edition) - ISBN 0-07-881776-5]
===
Internet: see also:
---
----------------------------------------------------------------------