学习使用|运算符

#include<stdio.h>
int main()
{        /*练习使用|运算符
            0|0=0 0|1=1 1|0=1 1|1=1*/
    int a, b;
    a=077;
    b=a|3;
    printf("\40:the a|b (decimal)is %d\n",b);
    b|=3;
    printf("\40:the a|b(decimal)is %d\n",b);
    getch();
    return 0;
}

原文地址:https://www.cnblogs.com/wangjingyuwhy/p/2941782.html