fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int octalNumber = 0123; //octal number
  5. int hexadecimalNumber = 0xabc; //hexadecimal number
  6. int integerNumber = 123; //integer number
  7. _Bool true = 1;
  8. _Bool false = 0;
  9. char letter = 'A';
  10.  
  11. printf("Octal number %o is \n\n",octalNumber);
  12. printf("Octral number %o changed to integer is %i\n\n",octalNumber,(int)octalNumber);
  13.  
  14. return 0;
  15. }
Runtime error #stdin #stdout 0.02s 3068KB
stdin
Standard input is empty
stdout
Standard output is empty