fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  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. }
  14.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
a=255,b=255