Create a gist now

Instantly share code, notes, and snippets.

@shumon84 /anser.c
Last active Mar 15, 2017

What would you like to do?
#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