& operator

david at iwu1a.UUCP david at iwu1a.UUCP
Sat Dec 3 05:53:29 AEST 1983


Can anyone define what the following expression means?

char *in;
char *out;

out = &(*in++);


Should "out" be set to "in" or "in + 1?"


Different compilers seem to have different opinions.  I believe it should
be set to "in."  Of course I discourage such expressions in real programs.


David Scheibelhut



More information about the Comp.lang.c mailing list