Sun Studio 12: C User's Guide

(7.9.6.1) The output for %p conversion in the fprintf function:

The output for %p is equivalent to %x.