CONDITIONAL (TERNARY) OPERATOR

Provides a concise way to express a conditional statement.

 

int a = 5, b = 10;

int max = (a > b) ? a : b;  // If a > b, max = a; otherwise, max = b;