fork(3) download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. unsigned char a;
  5. a=0x56;
  6. printf("%x",(unsigned char)(a<<2)); // I am expecting the output to be 58 here.
  7. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
58