Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Union and possible undefined behavior
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> union U { int i; float f; }; int f( int* pi, float* pf ) { int r = *pi; *pf = 3.14159; return r; } int main() { U u; u.i = 1; std::cout << f( &u.i, &u.f ); }
run
|
edit
|
history
|
help
0
VC++ latest rejects istream to nullptr comparison
GetFinalPathNameByHandle Behaviour
du
Problem_onoff_3
Copy_and_base
Two-phase sample with Visual C++ 2015
constexpr internal error
Copy vs Reference
hgh
RVO hota hai bhenchod