Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 218 Bytes

53.md

File metadata and controls

20 lines (19 loc) · 218 Bytes

题目:学习使用按位异或 ^。

#include <stdio.h>

int main()
{
	int a, b;
	a = 076;
	b = a ^ 3;
	printf("b = %d \n", b);
	b ^= 7;
	printf("b = %d \n", b);
	return 0;
}

结果:

b = 61
b = 58