10. Data Types of C Programming

Data Types of C Programming are given below :
A set of values together with a set of permitted operations is known as data types. Variables used in C programs are declared with appropriate data types before the variable is assigned any value. There are four basic data types in C language. They are described below:

(1) char : A char data type is used to hold individual character or letter or symbol. It usually occupies 1 byte in RAM. The value range in decimal in char data types is between - 128 to 127.

(2) int : An int data type is used to store a signed or unsigned whole integer number within a specified range and cannot have fractional values or a decimal point. It usually occupies 2 bytes in RAM. The value range in decimal in char data types is between - 32768 to 32767.

(3) float : A float data type is used to store floating point numbers or real numbers that is numbers that can have decimal values. It usually occupies 4 bytes in RAM. The value range in decimal in char data types is between 3.4e - 38 to 3.4e + 38.

(4) Double : A double data type is also used to store floating point numbers or real numbers, but can give a better precision. It usually occupies 8 bytes in RAM. The value range in decimal in char data types is between 1.7e - 308 to 1.7e + 308.

Comments

Popular posts from this blog

12. Library Functions of C Programming

13. Control Strings in C Programming

4. What is Compiler ?

7. Introduction of C programming :

18. Identifiers and Keyword in C programming

3. What is programming language ?

8. Program structure rules of C programming

9. Header Files of C Programming