Integer data type storage allocations : Integer Family « Data Type « C Tutorial

Home
C Tutorial
1.Language
2.Data Type
3.String
4.printf scanf
5.Operator
6.Statement
7.Array
8.Function
9.Structure
10.Pointer
11.Memory
12.Preprocessor
13.File
14.Data Structure
15.Search Sort
16.Wide Character String
17.assert.h
18.ctype.h
19.math.h
20.setjmp.h
21.signal.h
22.stdio.h
23.stdlib.h
24.string.h
25.time.h
26.wctype.h
C / ANSI-C
C++
C++ Tutorial
Visual C++ .NET
C Tutorial » Data Type » Integer Family 
2.7.3.Integer data type storage allocations
Data TypeAllocationRange
signed char1 byte-2^7 to 2^7-1(-128 to 127)
Unsigned char1 byte0 to 2^8-1(0 to 255)
short2 bytes-2^15 to 2^15 -1 (-32768 to 32767)
Unsigned short2 bytes0 to 216 -1 (0 to 65535)
long int4 bytes2^31 to 2^31-1 (2,147,483,648 to 2,147,483,647)
int2 or 4 bytes depending on implementation


2.7.Integer Family
2.7.1.Integer family
2.7.2.Float family (real numbers with decimal points)
2.7.3.Integer data type storage allocations
2.7.4.Using the integer conversion specifiers
2.7.5.Printing an unsigned integer in bits
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.