2022.3.1 ||逻辑或的运用

#include <stdio.h>
int a=0;
int b=5;
int c=a||b;
int main()
{    
    
    printf("c=%d\n",c);
    return 0;
}

 假的为0,真的为非零。0+1=1;

posted @ 2022-03-01 22:58  抢你红包  阅读(33)  评论(0)    收藏  举报