Bitwise Operators in C, And gate Truth Table

C Programming Language / Operators and Enums in C Language

1251

Program:

//And gate Truth Table

#include"stdio.h"
void main() {
         
   printf(" 0 & 0 = %d \n", 0&0 );
   printf(" 0 & 1 = %d \n", 0&1 );
   printf(" 1 & 0 = %d \n", 1&0 );
   printf(" 1 & 1 = %d \n", 1&1 );
      
}

Output:

 0 & 0 = 0
 0 & 1 = 0
 1 & 0 = 0
 1 & 1 = 1
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.