1
visibility

Evaluate the value of n if the value of p=5, q=19

int n = (q-p) > (p-q) ? (q-p) : (p-q);

  • 14

  • 5

  • -14

  • 19

int n = (19-5) > (5-19) ? (19-5) : (5-19)
int n = 14 > -14 ? 14 : -14
int n = true ? 14 : -14
int n = 14