In C, I\'d like to use printf to display pointers, and so that they line up properly, I\'d like to pad them with 0s.
My guess was that the proper way to do this was:
I usually use %x to display pointers. I suppose that isn't portable to 64-bit systems, but it works fine for 32-bitters.
I'll be interested in seeing what answers there are for portable solutions, since pointer representation isn't exactly portable.