Fun with & and *

Andy Kashyap aka at cbrma.UUCP
Tue Jul 1 03:58:57 AEST 1986


In article <3082 at jhunix.UUCP> ecf_bdw at jhunix.UUCP (Dwight Wilson) writes:
>
>In a previous article I wrote that one could use the macro:
>
>     #define pointer_to(X)  X *
>
>in order to allow declarations of the form
>
>     pointer_to(float)  x;
>

[ ...]

>                                                          -Dwight

Someday someone will try this declaration:

    pointer_to(int) pa, pb, pc ;

and be in for a surprise.

							- Andy Kashyap
							- ..!cbosgd!cbrma!aka



More information about the Comp.lang.c mailing list