I have the following code and I can't understand what does it mean:
var1 |= var2>0 ? 1 : 2;
Anyone can help me please!
if (var2 > 0)
var1 = var1 | 1;
else
var1 = var1 | 2;
It's bitwise-or.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With