/* 验证是逻辑右移还是算术右移 */ #include <stdio.h> int main() { char a = 64; char b = a * 2; printf("%d, %d", a, b); if (b < 0) printf("Arithmetical right shift.\n"); else printf("Logical right shift.\n"); return 0; }
by: 发表于:2017-08-21 14:32:39 顶(0) | 踩(0) 回复
??
by: 发表于:2017-08-21 14:32:39 顶(0) | 踩(0) 回复
??
回复评论