0

Why is different specifier used to print out address of variable and pointer some use %x, %u i need clarity please.?

10th Jun 2020, 8:37 AM
Femi SONI Y
Femi SONI Y - avatar
2 odpowiedzi
+ 4
And C has a little trick. %X for uppercase. E.g.: 0x10A %x for lowercase. E.g.: 0x0e
18th Jul 2020, 3:35 AM
Vitor
Vitor - avatar
+ 3
%u is the format specifier used for unsigned integer (decimal) %x it's for hexadecimal number Some ppl prefer hexadecimal for memory address: the output is more compact and clear...
10th Jun 2020, 8:56 AM
unChabon
unChabon - avatar