Skip to content

Instantly share code, notes, and snippets.

@shumon84
Last active March 15, 2017 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shumon84/8baa74c3fe9b272abf59eab1f01be450 to your computer and use it in GitHub Desktop.
Save shumon84/8baa74c3fe9b272abf59eab1f01be450 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(void)
{
int hoge=0x00000000ffff00ff;
long huga=0x7fffffffffffffff;
int a=hoge-huga;
long b=hoge-huga;
printf("hoge : %016x %d\n",hoge,hoge);
printf("huga : %016lx %ld\n",huga,huga);
printf(" a : %016x %d\n",a,a);
printf(" b : %016lx %ld\n",b,b);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment