Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Union-Struct-uint32_t byte order
//clang 6.0.0 #include <iostream> union muldiv_t { struct { uint16_t num; uint16_t inv; }; uint32_t u32All; }; int main() { muldiv_t md; md.num = 0xAAAA; md.inv = 0xBBBB; std::cout << std::hex << md.u32All << std::endl; }
run
|
edit
|
history
|
help
0
hello world
pointer to pointer
Clang-IsBaseOf
Enum flags operator example
C++ Register
11/18
DESim Example
vector destruction - clang
hello world 3
auto Keyword Example