Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pointer doubt (2)

58 views
Skip to first unread message

rashan

unread,
May 8, 2013, 2:48:17 PM5/8/13
to
Can u explain: why in C we can have a reference to a pointer... but
not... a pointer to a reference.

Isn't it VOID pointer will be good for this, can point to anything or
nothing.

With Many Thanks.

Eric Sosman

unread,
May 8, 2013, 3:10:12 PM5/8/13
to
On 5/8/2013 2:48 PM, rashan wrote:
> Can u explain: why in C we can have a reference to a pointer... but
> not... a pointer to a reference.

What do you mean by "reference"? If you mean the word as
it's used in C++, C doesn't have that kind of "reference" at all.
Try comp.lang.c++ if that's the language you're using.

> Isn't it VOID pointer will be good for this, can point to anything or
> nothing.

What do you mean by "this"?

--
Eric Sosman
eso...@comcast-dot-net.invalid

Nick Keighley

unread,
May 12, 2013, 4:56:03 AM5/12/13
to
even in C++ a void isn't a reference

Keith Thompson

unread,
May 12, 2013, 4:20:48 PM5/12/13
to
Did you mean to say that a void* isn't a reference?

--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"

88888 Dihedral

unread,
May 13, 2013, 12:47:04 AM5/13/13
to
Eric Sosman於 2013年5月9日星期四UTC+8上午3時10分12秒寫道:
It is just a parameter that will be supplied by the member function
in C++ to call a function in C.


0 new messages