Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
1337
simple in-memory b-tree
DESim Example with Hash Table
insertion sort
Расстановка восьми ферзей на шахматной доске так, чтобы ни один не угрожал другому - C++
hello world 3
EBO
What's the problem with this?
void pointer
Fun with Pointers #1
Please log in to post a comment.