What is Data Type in C?

A data type in the C programming language is a categorization that describes the kind of value that a variable can store. It specifies the types of data that can be stored in a variable as well as the actions that can be carried out on that data. Data types give the compiler details about the operations that can be carried out on a given value as well as the amount of memory needed to store values of a given type.

Simple Data Types:

int:   Represent integer values. a positive integer between -2147483648 and 2147483647. it has a size of 4 bytes.

char:      A single character is represented, and it typically takes up one byte.
float:      A floating-point number representation that has a single precision (about 7 decimal digits).
Double:    precision (about 15 decimal digits) is used to represent floating-point numbers.

Boolean data type: A boolean is a form of data that can have true (1) or false (0) as its value. In logic control systems, truth conditions are represented by two values.