Data type specifies the type of data a variable will hold and following are the characteristics data type specifies for a variable.

  1. Size: the number of bytes allocated to hold data.
  2. Range: Minimum and maximum value a variable can hold.
  3. Operation that can be performed on a variable.

c programming language data types are classified into following:

  1. Primitive Data Types
  2. Derived Data Types

Primitive Data Types

  1. int – is used to hold whole numbers
  2. float -is used to hold real numbers
  3. char – is used to hold char values
  4. void – specifies no value.

Derived Data Types

  1. Array – To hold multiple value of same data type under a single variable.
  2. Pointer – Stores address of another variable
  3. Structure- To hold different variables under a single name
  4. Union
  5. Enum