Xor-4 not clear

differ by only one bit is not clear
which one is correct
100 next is 101
or 100 next is 010

differ by only one bit means consecutive numbers bits representaion has only one bit difference…

for binary 100 next can be 101 or 110… both can be there since both have only one bit difference from 100…i hope its clear now…

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.