While running the following code I was surprised to see a different result from
the one I expected:
int a = 10;
double b = 5;
int sz_ret = sizeof (a>b? a:b);
In this case, while (to me) the obvious result would have been sz_ret = 4 (as
the result of the exp 'a>b? a:b' is a) after running this code under VS6 sz_ret
= 8.
Any reason for this behavior?
Thanks.
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/
[Non-text portions of this message have been removed]