Advertisements
Advertisements
प्रश्न
Enlist all data types in C language along with their memory requirement, format specifiers and range.
संक्षेप में उत्तर
उत्तर
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 |
shaalaa.com
Data Types in C-Programming
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?