Created
July 23, 2016 10:28
-
-
Save bwangelme/a3c8127fe1b17a86397c987d1711280c to your computer and use it in GitHub Desktop.
csapp 2.1.10笔记
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
/* 大多数编译器默认对有符号数的右移采用算数右移 */ | |
int a = -32; | |
int result = a >> 1; | |
printf("The result is %d\n", result); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment