Advertisement Remove all ads

Enlist All Data Types in C Language Along with Their Memory Requirement, Format Specifiers and Range. - Structured Programming Approach

Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads
Answer in Brief

Enlist all data types in C language along with their memory requirement, format specifiers and range.

Advertisement Remove all ads

Solution

Sr. NO. Data Type Type of data to be stored Range Space required in memory (bytes)
1. Char 1 character in ASCII form -127 to 128 1
2. Signed char 1 character in ASCII -127 to 128 1
3. Unsigned char 1 character in ASCII form 0 to 255 1
4. Int Integer nos. -32768 to 32767 2
5. Signed Int Integer nos. -32768 to 32767 2
6. Unsigned Int Integer nos. 0 to 65535 2
7. Short Int Integer nos. -32768 to 32767 2
8. Long int Integer nos. -2147483648 to 2147483647 4
9. Signed short int Integer nos. -32768 to 32767 2
10. Signed Long int Integer nos. -2147483648 to 2147483647 4
11. Unsigned short int Integer nos. 0 to 65535 2
12. Unsigned long int Integer nos. 0 to 4294967296 4
13. Float Fraction nos. 3.4e-38 to 3.4e38 4
14. Double Fraction nos. 1.7e-308 to1.7e308 8
15. Long double Fraction nos. 3.4e-4932 to 1.1e4932 10

 

Concept: Data Types in C-Programming
  Is there an error in this question or solution?
Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×