2 Answers
New AnswerThat 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.
This is not bit operation. It is ternary operator syntax with (IF Condition is true) ? (Do this) : (Else Do this);
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message