how is 3&&7 =3?????

0 votes
asked Feb 17, 2019 by anonymous
related to an answer for: Explain me the output please...

1 Answer

0 votes
answered Feb 17, 2019 by anonymous
7 = 0b111

3 =0b011

bitwise AND result in 0b011 which is 3

see Boolean Logic
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...