Skip to content

Instantly share code, notes, and snippets.

@bwangelme
Created July 23, 2016 10:28
Show Gist options
  • Save bwangelme/a3c8127fe1b17a86397c987d1711280c to your computer and use it in GitHub Desktop.
Save bwangelme/a3c8127fe1b17a86397c987d1711280c to your computer and use it in GitHub Desktop.
csapp 2.1.10笔记
#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