James Brown <no*@home.netwrote:
Say I have the following typedef statement:
typedef int * x;
Is it right to say that 'x' is an alias to a pointer-to-int
I guess you can call it that. But I would prefer to call it what
it is, a typedef, in order to distinguish it from e.g.
#define x int *
which you also could call an "alias" (perhaps with even more
justification).
or that 'x *' is a an alias to an 'int' ?
No. If you have e.g. a variable definition like
x *y;
'y' will be a pointer-to-pointer-to-int - but I would not call
the "x *" bit an alias, neither for an int nor for pointer-to-
pointer-to-int.
Regards, Jens
--
\ Jens Thoms Toerring ___
jt@toerring.de
\__________________________
http://toerring.de