char has lesser bytes than int and int has lesser bytes than double in any system
Option C is correct with respect to the size of the datatypes in the C programming language. The char data type typically has a size of 1 byte, the int data type typically has a size of 4 bytes, and the double data type typically has a size of 8 bytes. Therefore, char < int < double in terms of size. However, it's worth noting that the size of these data types can vary depending on the specific implementation and architecture of the system being used.
In C language, data types can be arranged based on their size in bytes. Here's a common arrangement from smallest to largest:
- char: Typically 1 byte.
- short: Usually 2 bytes.
- int: Generally 4 bytes.
- float: Usually 4 bytes.
- long: Typically 4 bytes on 32-bit systems and 8 bytes on 64-bit systems.
- double: Usually 8 bytes.
- long long: Typically 8 bytes.
- long double: Can vary, often 10 or 16 bytes.
Please note that the actual size of these data types might vary depending on the compiler and system architecture.