In the C programming language, there are several basic data types that you can use to define variables. Here are the commonly used basic data types in C:
- int: Used to store integer values. It can hold both positive and negative whole numbers.
- float: Used to store single-precision floating-point numbers. It can hold decimal values with a smaller range and less precision compared to double.
- double: Used to store double-precision floating-point numbers. It can hold decimal values with a larger range and higher precision compared to float.
- char: Used to store single characters. It can hold any character from the ASCII character set.
- Bool: Used to store boolean values. It can have two possible values: 0 (false) or 1 (true).
Riya Answered question May 26, 2023

Floating-point, integer, double, character. Union, structure, array, etc. The basic data types are also known as the primary data types in C programming.