Data Types in C

C programming includes various data types that can be used to manipulate and store different kinds of information.
There are two types of data types present in C those are

  • Primitive Data types
  • User Defined Data types
  • Derived Data types
Some of the commonly used basic primitive data types in C programming include:-
  • int: Used to store integer values.
  • float: Used to store floating-point values.
  • char: Used to store individual characters.
  • double: Used to store individual characters.
  • short: Used to store individual characters.

Derived Data types

Another important data type in C programming is the array, which allows for the storage of multiple elements of the same data type in a sequential manner. Sturcutes and Unions also comes under devived data types. Examples structures and unions

User Defined Data types

Enum is one example of user defined data types