In this example, long long is a 64-bit number.
The output can be changed to:
printf("0X%0 16LLX ",b);
Otherwise, we can only make changes:
if(b & lt; 0)printf("0XFFFFFFFF%8X ",b);
else printf("0X%0 16X ",b);