Page 1 of 1

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
by correctanswer
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
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 85 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 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"