What is difference between %d
and %u
when printing pointer addresses?
For example:
int a=5;
// check the memory address
printf("memory add=%d\n", &a); // prints "memory add=-12"
printf("memory add=%u\n", &a); // prints "memory add=65456"
Please define.