📜  C 按位 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:37.699000             🧑  作者: Mango

代码示例1
#include 
int main(void) {
  unsigned int a = 60; //Equal to: 0011 1100
  unsigned int b = 13 // Equal to: 0000 1101
  
  int both = a & b //If both are 0, then its a 0, 
  // if both are 1, then its a 1.  //0000 1100
  
  printf("%d\n", both);


}