July2016 cs Q11

0. Given i = 0, j = 1, k = –1 x = 0.5, y = 0.0 What is the output of the following expression in C language ? x * y < i + j || k

  • Option : C
  • Explanation :
    = x * y < i + j || k
    = 0.5 * 0.0 < 0 + 1 || -1
    = 0.0 < 0 + 1 || -1
    = 0.0 < 1 || -1
    = 1 || -1
    = 1
    So, option (C) is correct.
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 *