(void) (void)
T. William Wells
bill at proxftl.UUCP
Wed Sep 7 23:25:41 AEST 1988
In article <8131 at elsie.UUCP> ado at elsie.UUCP (Arthur David Olson) writes:
: (void) (void) 5;
: Is the above legal ANSI code? Should it be?
>From section 3.2.2.2:
"The (nonexistent) value of a *void expression* (an expression
that has type _void_) shall not be used in any way, and implicit
or explicit conversions (except to _void_) shall not be applied
to such an expression."
In other words, yes: there is a specific exception in the
standard that permits this.
---
Bill
novavax!proxftl!bill
More information about the Comp.std.c
mailing list