Gate2017 cs Q48

  • Option : C
  • Explanation : ((strlen(s) – strlen(t)) > c) ? strlen (s) : strlen (t)
    = (3 – 5 > 0)
    = (-2 > 0)
    Important point here is while comparing -2 with c, result will be a positive number as c is unsigned. So, out of these two, strlen (s) will be printed. Therefore, 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 *