C Language and Libraries Help (clang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
C/C++ Data Types
◄Up► ◄Contents► ◄Index► ◄Back►
─────C/C++ Language─────────────────────────────────────────────────────────
Syntax: type declarator
Summary: C/C++ recognizes the types shown in the following table:
Type Name Bytes Other Names Range of Values
int * signed, System dependent
signed int
unsigned int * unsigned System dependent
char 1 signed char -128 to 127
unsigned char 1 none 0 to 255
short 2 short int, -32,768 to 32,767
signed short int
unsigned short 2 unsigned short int 0 to 65,535
long 4 long int, -2,147,483,648 to
signed long int 2,147,483,647
unsigned long 4 unsigned long int 0 to 4,294,967,295
enum 2 none -32,768 to 32,767
float 4 none 3.4E ± 38 (7 digits)
double 8 none 1.7E ± 308 (15 digits)
long double 10 none 1.2E ± 4932 (19 digits)
* Signed and unsigned are modifiers that can be used with any integral
type. The char type is signed by default, but you can specify /J to
make it unsigned by default.
The int and unsigned int types have the size of the system word.
This is two bytes (the same as short and unsigned short) on MS-DOS
and 16-bit versions of Windows. However, portable code should not
depend on the size of int.
See also: ◄Data-Type Constants►
◄long double type►
-♦-