C ternary that returns only in one case code example
Example 1: if statement shorthand c
if (true)
printf("This is the shorthand");
// OR
(true) ? (/*run if true*/) : (/*run if false*/);
Example 2: one line conditional statement in c
str = arraeck(a, n) ? "YES" : "NO";
printf(arraeck(a, n) ? "YES" : "NO");