What is the output of the following code? Assume that int is 32 bits, short is 16 bits, and the representation is two's
Posted: Fri Jun 10, 2022 11:56 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 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"