Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. main() {
  2.   union {unsigned int word;unsigned char byte[4];} test;
  3.  
  4.   test.byte[0] = 7;
  5.   test.byte[1] = 8;
  6.   test.byte[2] = 9;
  7.   test.byte[3] = 2;
  8.  
  9.   printf("%x",test.word);
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement