What does a question mark (?) in C mean?
?
? is the first symbol of the ?: ternary operator.
?:
a = (b==0) ? 1 : 0;
a will have the value 1 if b is equal to 0, and 0 otherwise.
a
b
0
1.4m articles
1.4m replys
5 comments
57.0k users