R
Robert Gamble
Frederick said:Robert Gamble posted:
It makes perfect sense.
To you it does, that's the problem.
The literal, 5, is cast to a double, and the result
is supplied as an operand to sizeof.
I have already explained to you that this is not the case since the
sizeof operator has a higher precedence than a cast, repeating your
assertion will do little to change the facts.
I know that. My question is why it isn't interpreted as:
sizeof((double)5)
And I have clearly explained why.
My operator precedence table would have me to believe that it should.
Either you or your operator table needs to be tweaked.
Robert Gamble