RxLogix Corporation Interview Question

How to find a number is even or odd without using / or % sign

Interview Answers

Anonymous

Feb 27, 2019

Using bitwise operator

1

Anonymous

Dec 16, 2020

if(n&1) is true then it is odd otherwise even.