主页
C 语言
C 位运算符
demo_bitwise_xor
运行 ❯
×
更改方向
保存代码
更改主题
#include
int main() { int a = 6; // 0110 int b = 3; // 0011 int result = a ^ b; printf("Result: %d\n", result); // 5 (0101) return 0; }
Result: 5