Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

C++ Data Types

RSS
Modified on Sat, Jan 24, 2009, 6:10 PM by Administrator Categorized as C and C-plus-plus

Fundamental Data Types

Type Also known as Literals Contents Memory
int signed; signed int   system dependent 4 bytes
__int8 char; signed char   -128 to 127 1 byte
__int16 short; short int; signed short int   -32,768 to 32,767 2 bytes
__int32 signed; signed int   -2,147,483,648 to 2,147,483,647 4 bytes
__int64 none     8 bytes
char signed char character enclosed in single quotes or a number single character; -128 to 127 (ASCII) 1 byte
unsigned char unsigned char character enclosed in single quotes or a number single character; 0 to 255 (ASCII) 1 byte
short short int; signed short int   -32,768 to 32,767 2 bytes
unsigned short unsigned short int   0 to 65,535 2 bytes
long long int; signed long int digits suffixed with an L -2,147,483,648 to 2,147,483,647 4 bytes
unsigned long unsigned long int digits suffixed with a UL 0 to 4,294,967,295 4 bytes
enum none   same as int *
float none digits suffixed with an f 3.4E + 38 (7 digits) 4 bytes
double none   1.7E + 308 (15 digits) 8 bytes
long double none   1.2 E + 4932 (19 digits) 10 bytes

Numeric Data Types

Base Literals
hexadecimal Digits prefixed with 0x
octal Digits prefixed with 0 (zero)

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.