Pages

Thursday, 8 September 2011

Data Types (1)

Data types are required for efficient coding of programs. There are two types
  1. Primitive Data types
  2. Composite Data types
Primitive Data Types:
 Primitive  data types includes Boolean, which stores logical values true or false. Operation on Boolean data type include AND, OR and NOT. Ranges of primitives data types depend on the number of bits allocated by the compiler and hardware circuitry.
  • Typocally an integer type ranges from -2,147,483,648 to 2,147,483,647.
  • Character type can range from 0 to 65,000
Operation on primitives types are often included in the CPU instructions set. On some systems the primitives data types are implemented using software routines.
On small computers, for example, real number are often processed using software instructions.

Table below summarizes ranges of different primitive data types.


More Coming soon

No comments:

Post a Comment