自學第十五天

//#include<stdio.h>
//int main()
//{
//	int a = 10;
//	int t = 10;
//	int b, c;
//	b = a << 1;只能在二進制中左移右移
//	c = a >> 1;
//	//t += 20;
//	t -= 5;
//	printf("%d\n", b);
//	printf("%d\n", c);
//	printf("%d\n", a);
//	printf("%d\n", t);
//	return 0;
//}

//#include<stdio.h>
//int main()
//{
//	int a = 3;//011
//	int b = 5;//101
//	printf("%d\n", a & b);//001
//	printf("%d\n", a | b);//111
//	printf("%d\n", a ^ b);//110
//	return 0;//0是假,所有非0都是假。
//}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章