0
Why is different specifier used to print out address of variable and pointer some use %x, %u i need clarity please.?
2 Antworten
+ 4
And C has a little trick.
%X for uppercase.
E.g.: 0x10A
%x for lowercase.
E.g.: 0x0e
+ 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...