fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.  
  6. unsigned char a = 0xff;
  7.  
  8. unsigned long b = (unsigned long)a;
  9.  
  10.  
  11. printf("a=%d,b=%d\n",a,b);
  12. return 0;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
a=255,b=255