void swap(int *px, int *py) {
int temp;
temp = *px;
/* contents of pointer */
*px = *py;
*py = temp;
}
is x the value stored at p or is px the value stored of type int
is py a copy of px
"Victor A. Wagner Jr." <[EMAIL PROTECTED]> wrote:
Robert Ryan wrote:
> can you carify.........&p = the address of a value and *p is the value stored
> at p
>
well, what you stated is incorrect
suppose p is the name of a variable
&p is "where in memory" p can be found
IF p is a pointer (e.g. T* p;)
THEN *p is an item of type T..... specifically the one pointed to by the
pointer contained in p
>
> ---------------------------------
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more.
>
> [Non-text portions of this message have been removed]
>
>
>
> To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
> Yahoo! Groups Links
>
>
>
>
>
>
>
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.
[Non-text portions of this message have been removed]