Which one is the more efficient way to check whether the number is even? Given that num
is an int.
if(num % 2 == 0)
// Or
if((num & 1) == 0)
Which one is the more efficient way to check whether the number is even? Given that num
is an int.
if(num % 2 == 0)
// Or
if((num & 1) == 0)