Why is bitwise anding with 0 doesnt give the corrct output here?
Bitwise doubt in concept
correct code
you have to use brackets
if((0&1)==0)
otherwise it interpret it as
if(0&(1==0))
thanks can you send me any artice link to read more about these stuffs related to bitwise beacause mostly i face problems of this type while writing prgrams
there is a section of bitwise operator in your course
you can watch those videos
yup I have watched that but this handling of dp values isnt discussed there
you can also go to hacker blocks or any other online platform
filter the question of bitmasking and start solving them
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.