What is Data Type ?

“Data type” is used to identify the type of data and associated operations of handling it.

Data types can be divided into two types:

  • Fundamental or Built-in data types (Primary Data Types)
  • Derived data types ( Secondary Data Types)
  • User Defined data types

Built-in Data Types:

The basic built-in or fundamental data types that are available in C are:

  • Char
  • Int
  • Float
  • Double
  • Void
1. Integer int
2. Character char
3. Floating Point float
4. Double precision floating point double
5. Void void

Derived Data Types:

The basic derived types that are available in C are:

  • Array
  • Functions and pointers
  • Float
  • Structures
  • Classes etc..

User defined Data Types:

With the help of a user defined data type, a programmer can create an identifier that denotes an already existing data type. The programmer defined data type identifier is then used in a program to declare variables.

Back