Computer Science SSC II Notes - AKUEB
8.4.3 Define the following data types offered by C-Programming language and the number of bytes taken by each data type:
a. Integer Data Type:
Integer data types are used to
store whole numbers without decimal points. In C programming, integer data
types can have different sizes and ranges, depending on the implementation and
the target platform.
b. Floating-Point Data Type:
Floating-point data types are used
to represent real numbers with fractional parts. They can store both large and
small numbers with decimal points. In C programming, floating-point data types
also come in different sizes.
c. Character Data Type:
The character data type is used to
store individual characters in C programming. It can also be used to represent
small integers within the ASCII character set. The char data type can store a
wide range of characters, including alphabets, digits, symbols, and special
characters. It can represent characters directly using single quotes (' ') or their corresponding ASCII
values.
|
Data Types |
Bites
Occupied |
|
Integer (int) |
4 bytes |
|
Short Integer (short int) |
2 bytes |
|
Long Integer (long int) |
8 bytes |
|
Floating Point (float) |
4 bytes |
|
Double Floating Point (double) |
8 bytes |
|
Long Double Floating Point (Long double) |
More than 8 bytes
|
|
Character (char) |
1 Byte |
***Refer to your textbook for more detailed
and a precise table***
Cognitive Level: Knowledge

.png)
Comments
Post a Comment