how to use ? in c

C
result = comparison ? if_true : if_false;
Source

Also in C: