public static int Main() { var a = new StructWithFloats { FloatOne = 1, FloatThree = 2 }; return(Problem(&a) ? 101 : 100); }
private static bool Problem(int i) { StructWithFloats s = default; s.FloatOne = BitConverter.Int32BitsToSingle(i); return(s.FloatOne != *(float *)&i); }