In C programming, there are several basic data types that can be used to define variables. Here are the commonly used data types in C:
int: Used to store integer values. It typically uses 4 bytes of memory.char: Used to store single characters. It uses 1 byte of memory.float: Used to store floating-point numbers with single precision. It typically uses 4 bytes of memory.double: Used to store floating-point numbers with double precision. It usually uses 8 bytes of memory.short: Used to store small integer values. It typically uses 2 bytes of memory.long: Used to store large integer values. It can use 4 or 8 bytes of memory, depending on the system.unsigned: Used with integer types to represent only positive values, extending the range of positive values that can be stored.signed: Used with integer types to represent both positive and negative values. It is the default behavior if signed or unsigned is not specified.void: Used to indicate the absence of a type. It is commonly used as the return type of functions that do not return a value or when working with pointers.
These are the fundamental data types in C. Additionally, there are derived data types such as arrays, structures, and pointers, which are built using these basic data types.
Annie Sanjana Answered question May 26, 2023

Types of Data Types in C
Data Type Example of Data Type
Basic Data Type – Floating-point, integer, double, character.
Derived Data Type – Union, structure, array, etc.
Enumerated Data Type – Enums
Void Data Type – Empty Value