fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. unsigned int TempHoge = 0x55aa;
  6. unsigned char Hoge[2];
  7.  
  8. Hoge[0] = TempHoge >> 8;
  9. Hoge[1] = TempHoge;
  10.  
  11. printf("Hoge[0]:%x\n",Hoge[0]);
  12. printf("Hoge[1]:%x\n",Hoge[1]);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Hoge[0]:55
Hoge[1]:aa