C - Data Types
Data type specifies the type of data, entered by the user. Data types are divided into two major categories:
- Primary Data Type
- Secondary Data Type
1. Primary Data Type : Primary data types is also known as Primitive or Pre-defined data types. It is divided into 3 categories.
a. Integer (Non-Decimal) : Only integer values are allowed.
b. Real (Decimal) : In Real data type, decimal values can be use.
c. Character : Character data type can store only single character.
The memory size of basic data types may change according to 32 or 64 bit operating system. The above mentioned size is given according to 32 bit OS.
2. Secondary / Non – Primitive / User Defined Data Types : These data types are defined and use by user according to his requirements. Secondary data types contains: