位逻辑运算符

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> int main() { short czs1 = 521; short czs2 = 123; short ResAnd, ResOr, ResNot, Res; ResAnd = czs1 & czs2; ResOr = czs1 | czs2; ResNot = ~czs1; Res = czs1 ^ czs2; printf("位与: czs1&czs2 是 %d\n", ResAnd); printf("位或: czs1|czs2 是 %d\n", ResOr); printf("位取反: ~czs1 是 %d\n", ResNot); printf("位异或: czs1^czs2 是 %d\n", Res); }
Editor Settings
Theme
Key bindings
Full width
Lines