%p and different pointer representations

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Feb 25 12:20:01 AEST 1989


In article <234 at mstan.Morgan.COM> dff at Morgan.COM (Daniel F. Fisher) writes:
>To what type should a pointer argument be cast when passing it to
>fprintf() for printing using the %p conversion specifier?

(void *), or, since it has the same representation, (char *).



More information about the Comp.lang.c mailing list