Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- int main(){
- union {
- int foo;
- char bar[4];
- };
- foo = 0xa6f6f46;
- printf("%4s\n", bar);
- return 0;
- }
- // Run: g++ foo.cc && ./a.out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement