Skip to content

Instantly share code, notes, and snippets.

@shumon84
Created March 15, 2017 12:15
Show Gist options
  • Save shumon84/7454d2767eb1cc8263def6324a59ab6a to your computer and use it in GitHub Desktop.
Save shumon84/7454d2767eb1cc8263def6324a59ab6a to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(void)
{
int hoge=0x00000000ffff00ff;
long huga=0xffffffffffffffff;
int a=hoge-huga;
long b=hoge-huga;
printf("a = %016x\n",a);
printf("b = %-16lx\n",b);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment