fork(1) download
  1. #include <stdio.h>
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main(void) {
  8. unsigned short t1=0x8000;
  9. short temp = (short) t1 >>6;
  10. printf("Result = \%hx \n",temp);
  11. printf("Try programiz.pro");
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Result = fe00 
Try programiz.pro