#include <stdio.h>
int main(void)
{
int *ptr;
printf("The Hex value of ptr is 0x%x",ptr);
printf("The pointer value of ptr is %p",ptr);
}
and the output is a little different that I don't know why
The Hex value of ptr is 0x24a77950
The pointer value of ptr is 0x7fff24a77950
It shows the value of ptr is a hex integer, but the hex output lack the part 7fff
.
Is this the printf formatting issue or something else?