fork(1) download
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdint.h>
  4. int main(){
  5. unsigned char msbyte =0x7f;
  6. unsigned char lsbyte = 0xff;
  7. int16_t temp=0;
  8. temp = (msbyte<<8) | lsbyte;
  9. printf(" %4x temp %d ", temp,temp);
  10.  
  11. return 0 ;
  12.  
  13. }
  14.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
 7fff temp 32767