Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
The C Declarations 31
Basic Data Type
The basic data types supported by C are described with their size in bytes and ranges in Table 2.5.
Table 2.5 Basic data types of C with size and range
Data Type
Size in bytes Range
char
1
-128 to 127
unsigned char
1
0 to 255
signed char 1
-128 to 127
int 2 -32768 to 32767
unsigned in t 2 0 to 65535
signed in t 2
-32768 to 32767
short in t 2
-32768 to 32767
unsigned short in t
2 0 to 65535
signed short in t
2 -32768 to 32767
long in t
4 -2147483648 to 2147483647
signed long in t
4 -2147483648 to 2147483647
unsigned long in t
4 0 to 4294967295
float
4 3.4E-38 to 3.4E+38
double
8
1.7E -308 to 1.7E+308
long double
10
3.4E -4
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343