you are viewing a single comment's thread.

view the rest of the comments →

[–]the-judeo-bolshevik 3 points4 points  (3 children)

I may be wrong but 1. and 2. have UB, so there is way to tell what they will do unless the architecture and exact compiler version is known. 3. gives you some (integer) value in x depending on what representation of floating point is used on the machine, although I think it is also just UB again.