Bitwise '&' operator

Viewed 8177

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\n");
}
6 Answers
Related