#include <stdio.h>

int main(void)
{
	//位运算符 & | ^ ~

	printf("8|2=%d\n",8|2);// 10
	printf("12&6=%d\n",12&6);//4
	printf("12^6=%d\n",12^6);//4
	printf("~8=%d\n",~227);//-228
	
	printf("12&&2=%d\n",12&&6);//1
	
	printf("12||2=%d\n",12||6);//1
	return 0;
}

  

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-12-31
  • 2022-12-23
  • 2021-07-29
  • 2021-05-23
  • 2021-06-29
相关资源
相似解决方案