Last active
March 15, 2017 12:23
-
-
Save shumon84/8baa74c3fe9b272abf59eab1f01be450 to your computer and use it in GitHub Desktop.
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(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