Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main() {
- union {unsigned int word;unsigned char byte[4];} test;
- test.byte[0] = 7;
- test.byte[1] = 8;
- test.byte[2] = 9;
- test.byte[3] = 2;
- printf("%x",test.word);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement