hex - Print Hexadecimal with padded zeroes in C -
i have %#x
print hexadecimal representation of number. 5, printing 0x5
want print 0x00000005
8 zeros padded. tried %#08x
seems remove 0x
output want keep. tried %#080x
padded the output lots of zeros. how can prepare maintain 0x
?
c hex
No comments:
Post a Comment