Data Types in C

Basic Data Types in C:

There are four basic Data Types in the C language. They are given below along with several bytes occupied by them in the computer memory (RAM). There are four basic Data Types in C are: char, int, float, double

1. char : It refers to character. It can hold one letter/symbol. char in C language is associated with integers to refer to a letter/symbol as per ASCII (American Standard Code for Information Interchange) which has assigned integer value for all letters/symbols used in programming.

2. int : It refers integer. It can hold a signed or unsigned whole number within the specified range.

3. float : It refers floating point or real number. It can hold a real number like 3.142857 or 4.23e6 with decimal digits in decimal or exponential form. A float number using 6 decimal digits is called a single-precision number.

4. double : It also refers to floating-point or real number. It can hold a real number in double precision. A double-precision number uses 12 decimal digits like 3.142857142857 or 4.23145342148e12