- What Is The Output Of The Following Code Assume That Int Is 32 Bits Short Is 16 Bits And The Representation Is Two S 1 (25.56 KiB) Viewed 83 times
What is the output of the following code? Assume that int is 32 bits, short is 16 bits, and the representation is two's
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am
What is the output of the following code? Assume that int is 32 bits, short is 16 bits, and the representation is two's
What is the output of the following code? Assume that int is 32 bits, short is 16 bits, and the representation is two's complement unsigned int x = 0xDEADBEEF; unsigned short y = 0xFFFF; signed int z = -1; if (x > (signed short) y) printf("Hello"); if (x > Z) printf("World"); Prints "World" O Prints nothing. O Prints "Hello" O Prints "HelloWorld"