When I want to print a hexadecimal value of an integer using printf in C, I use the following statement : printf ("\n X = 0x%x \n",x);
Here I assume the following declaration : int x = -1
Now this prints Oxffffffff
. I would like to see the output as 0xFFFFFFFF (all Tall Letters). Which format specifie开发者_如何学编程r will help me achieve that?
printf ("\n X = 0x%X \n",x);
精彩评论