fork download
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. /* variable definition: */
  5. int a, b, float c;
  6. /* variable initialization */
  7. a = 30;
  8. b = 5;
  9. c = a / b;
  10. printf("float (a,b) and quotient (c) are : %d,%d,%d \n", a,b,c);
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:13: error: expected identifier or ‘(’ before ‘float’
   int a, b, float c;
             ^~~~~
prog.c:9:2: error: ‘c’ undeclared (first use in this function)
  c = a / b;
  ^
prog.c:9:2: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty