Multiple choice

What is the output of the given code?

int main()
 {
 int i=2;
 int j=3;
 int k=127;
 printf("%h",++k>>++j<

  1. 32

  2. 20

  3. 16

  4. Blank Output Screen

  5. Compiler error

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct choice because the correct answer is 20, but it will not be printed on the screen because we have used specifier %h in the printf() function which is not recognised by the compiler. To successfully print the output in hexadecimal form on the screen we must use %hx. So, blank output will be there on the screen.