- AProgram will compile and print the output ATNYLA
- B Program will compile and print ATNYLA for 5 times
- C Program will compile and print the ASCII value of ATNYLA
- DThe compiler will flag an error
Output:
ATNYLA ATNYLA ATNYLA ATNYLA ATNYLA
Output:
-56
Output
equal
0.1f results in 0.1 to be stored in floating point representations.
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:
Please note that the actual size of these data types might vary depending on the compiler and system architecture.
Output:
4
Since the size of a union is the size of its maximum datatype, here int is the largest hence 4.
All are not modifier. Also register is not a modifier.
By default floating constant is of a double data type. By suffixing it with f or F, it can be converted to float data type. For more details, this post can be referred here.
We cannot predict the value of volatile variable because its value can be changed by any microprocessor interrupt.
In C, when an integer value is compared with an unsigned it, the int is promoted to unsigned. Negative numbers are stored in 2's complement form and unsigned value of the 2's complement form is much higher than the sizeof int.