comp.lang.c
[Top] [All Lists]

Re: K&R2 , exercise 7.6

Subject: Re: K&R2 , exercise 7.6
From: santosh
Date: Wed, 30 Apr 2008 11:48:54 +0530
Newsgroups: comp.lang.c

arnuld wrote:

<snip>

> BTW, I used %d, %lu, %s but what is %p ?

Conversion specifier to print a pointer value in a implementation
defined format. The corresponding argument should be cast to a void *
value for maximum portability.

The scanf family of functions also recognise %p and the corresponding
argument should be the address of a void *. The input must be in the
same format that printf outputs for a %p invocation.


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy