Lesson 37 of 42 · +90 xp

Ternary

Inline conditional.

Explained simply

Your task

Write: int sign = x > 0 ? 1 : -1;

ternary-c.c
← Back