May 2012
Intermediate to advanced
679 pages
16h 56m
English
In a program, we typically need data in the form of strings and numbers. Even numbers are of different kinds and size. Hence, computer scientists devised data types. There are basic data types and their variations. Let us study them in detail.
There are three basic data types in a programming language like C++. They are integer, real and character. To represent them, C++ has defined following keywords:
Integer represented by int
Real represented by float
Character represented by char
The language supports four modifiers for these basic data types, namely short, long, signed or unsigned. As the name suggests “short” indicates a small number while “long” indicates large number. The modifier “signed” signifies ...
Read now
Unlock full access