CP I/O Q52

  • Option : C
  • Explanation :
    Let size of (int)=1. So, -4 will be stored as 11111100. Since we are adding unsigned and signed integers the signed gets converted to unsigned.
    So, i + j will become 11111101. We are trying to print this as an unsigned integer.
    So, what is printed will be 2⁸-1-2. So, log (x+3)=8(i.e,*size of (int)).
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *