>> After a bit of experimentation it seems to me that actually the
result of the conditional expression is cast to the 'roomiest' type
(which is variable's a type, double) thus
the result 8 bytes ->
sizeof (double).
> I don't think you can use sizeof on an expression like that... what
does the standard say?
I don't see why you cannot use sizeof on such an expression. The conditional
expression's result is evaluated to a constant on which the sizeof operator is
applied...
Nevertheless, I don't have a copy of the standard so I can only make
assumptions. Didn't find much about this on the internet either.
____________________________________________________________________________________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings,
and more!
http://tv.yahoo.com/collections/3658
[Non-text portions of this message have been removed]