Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by test-test-test ( 15 years ago )
#include <iostream>
using namespace std;
union Test {
float a;
struct {
int other:31;
int sign:1;
} b;
};
int main() {
Test test;
Test test2;
test.a = -0.0;
test2.a = +0.0;
cout << test.b.sign << endl;
cout << test2.b.sign << endl;
return 0;
}
Revise this Paste