您尚未登录。
页次: 1
题目:学习使用按位异或 ^。
程序分析:0^0=0; 0^1=1; 1^0=1; 1^1=0 。
程序源代码:
#include <stdio.h> int main() { int a,b; a=077; b=a^3; printf("b 的值为 %d \n",b); b^=7; printf("b 的值为 %d \n",b); return 0; }
离线