I am lacking some basic understanding in bitwise '&' operator.
5 = 101
4 = 100
So why the output of the below if
condition is true cause and of bits 101 & 100
should be false:
#include <stdio.h>
main()
{
if(5&4)
printf("Yes
");
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…