ternary operatpor code example
Example 1: ternary operator
(condition) ? (if true, do this) : (otherwise, do this)
Example 2: one line conditional statement in c
str = arraeck(a, n) ? "YES" : "NO";
printf(arraeck(a, n) ? "YES" : "NO");
(condition) ? (if true, do this) : (otherwise, do this)
str = arraeck(a, n) ? "YES" : "NO";
printf(arraeck(a, n) ? "YES" : "NO");