Data Types in C
Data type specify what type of data is entered by a 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.
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: