santosh <> writes:
[...]
> Maybe this is a language issue. Would I be correct when I say "A
> pointer to type void"? I don't think so. So I suppose instead of
> saying, for example, "a pointer to type int", I should say "a pointer
> of type int *" or, better yet, "an int pointer"...?
In my opinion, "a pointer to type void" or "a pointer to type int" is
ok, but "a pointer of type void*" or "a pointer of type int*" is
better. Pointer objects don't point to types, they point to objects.
Pointer types don't point to anything, but objects and values of
pointer types may point to objects. But we can colloquially say that
type int* points to type int; it's not 100% accurate, but it's not
ambiguous, and I wouldn't complain about the usage unless I was
invited to.
I wouldn't use the phrase "an int pointer" because it could imply
something that's both an int and a pointer, rather than something that
points to an int.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"