0
Bit operation.
What does b/a?a:b mean? Where a and b are integers.
2 odpowiedzi
+ 3
That is called a ternary operator.
If b/a is greater than 0 than it will assign the value of "a" to the variable or if b/a is 0 then it will assign the value of "b" to the variable.
It is a simple if else statement.
+ 2
This is not bit operation.
It is ternary operator syntax with
(IF Condition is true) ? (Do this) : (Else Do this);