? : operator in lvalue

Glen McCluskey glenm at mako.UUCP
Tue Apr 16 13:51:20 AEST 1985

Is it considered kosher to use the ``? :'' operator
in computing an lvalue, as in

	int a, b, c;

	*(a ? &b : &c) = 47;

This is certainly legal C, but I never recall
seeing it used in any code I have looked at.

	Glen McCluskey

More information about the Comp.lang.c mailing list