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. int octal_to_decimal = (int)octalnumber;
  8. _Bool true = 1;
  9. _Bool false = 0;
  10. char letter = 'A';
  11.  
  12. printf("Octal number %o is \n\n",octalNumber);
  13. printf("Octral number %o changed to integer is %i\n\n",octalNumber,octal_to_decmial);
  14.  
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:7: error: ‘octalnumber’ undeclared (first use in this function)
prog.c:7: error: (Each undeclared identifier is reported only once
prog.c:7: error: for each function it appears in.)
prog.c:13: error: ‘octal_to_decmial’ undeclared (first use in this function)
prog.c:10: warning: unused variable ‘letter’
prog.c:9: warning: unused variable ‘false’
prog.c:8: warning: unused variable ‘true’
prog.c:7: warning: unused variable ‘octal_to_decimal’
prog.c:6: warning: unused variable ‘integerNumber’
prog.c:5: warning: unused variable ‘hexadecimalNumber’
stdout
Standard output is empty