Pointer question.

From: Gregory L. Hansen (glhansen_at_steel.ucs.indiana.edu)
Date: 03/26/05


Date: Sat, 26 Mar 2005 22:35:18 +0000 (UTC)


I want to check on something. For a float, f and a pointer to float,
fptr, are the statements

  *fptr = f;
  fptr = &f;

the same thing?

-- 
"Let us learn to dream, gentlemen, then perhaps we shall find the
truth... But let us beware of publishing our dreams before they have been
put to the proof by the waking understanding." -- Friedrich August Kekulé


Relevant Pages

  • Re: Pointer question.
    ... For a float, f and a pointer to float, ... I always forget just what it means to have *fptr on the ... I think the pointer pointed to something when I tried ... "Let us learn to dream, gentlemen, then perhaps we shall find the ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Pointer question.
    ... "Gregory L. Hansen" wrote in message ... > pointer to float, fptr, are the statements ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Pointer question.
    ... Gregory L. Hansen wrote: ... For a float, f and a pointer to float, ... *fptr = f; ... assigns the address of f to the pointer fptr. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Pointer question.
    ... Gregory L. Hansen: ... For a float, f and a pointer to float, ... Assigns to the float that fptr points to. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Shore Fire Press Release!
    ... Oooh, my dream come true;-) ... And I betcha that we'll have some extras on autoharp just to truly float ...
    (rec.music.artists.springsteen)