Bitwise operator

what does this no&1 means ??

@Tanya25 hey tanya basically this give you zero and one based upon even and odd value
for example
no is 5
so binary of 5 is 0101
and last bit is 1 which is also called as set bit
so it return last bit as 1 as output
and if the no is say 4
then
binary of 4 is 0100
and last bit is zero so it will return last bit as output as 0

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.