📄 and.c
字号:
#include <stdio.h>int main(){ int i1, i2; /* two random integers */ i1 = 4; i2 = 2; /* Nice way of writing the conditional */ if ((i1 != 0) && (i2 != 0)) printf("Both are not zero\n"); /* Shorthand way of doing the same thing */ /* Correct C code, but rotten style */ if (i1 && i2) printf("Both are not zero\n"); /* Incorrect use of bitwise and resulting in an error */ if (i1 & i2) printf("Both are not zero\n"); return (0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -