I don't quite understand some code that looks like this
int zeronumber = 0;
SomeMember.Some Function(&zeron umber);
I'm almost sure that SomeFunction is a function defined on pointer-to-
int, and is here being applied to the null pointer. But, if I'm
right, it would seem that SomeFunction would be applied to
(zeronumber) rather than (&zeronumber) . &zeronumber would seem to
mean "the address of a null pointer" which doesn't make sense. I'm
basically confused by the ampersand in front of zeronumber.
Thank you,
Paul Epstein
int zeronumber = 0;
SomeMember.Some Function(&zeron umber);
I'm almost sure that SomeFunction is a function defined on pointer-to-
int, and is here being applied to the null pointer. But, if I'm
right, it would seem that SomeFunction would be applied to
(zeronumber) rather than (&zeronumber) . &zeronumber would seem to
mean "the address of a null pointer" which doesn't make sense. I'm
basically confused by the ampersand in front of zeronumber.
Thank you,
Paul Epstein
Comment