fork download
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. /* variable definition: */
  5. float a, b, c;
  6. /* variable initialization */
  7. = 7.2; b = 3.1; c = a / b;
  8. printf("Integers (a,b) and product (c) are : %d,%d,%d \n", a,b,c);
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:7:2: error: expected expression before ‘=’ token
  = 7.2; b = 3.1; c = a / b;
  ^
prog.c:8:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
 printf("Integers (a,b) and product (c) are : %d,%d,%d \n", a,b,c);
                                               ^
prog.c:8:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat=]
 printf("Integers (a,b) and product (c) are : %d,%d,%d \n", a,b,c);
                                                  ^
prog.c:8:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘double’ [-Wformat=]
 printf("Integers (a,b) and product (c) are : %d,%d,%d \n", a,b,c);
                                                     ^
stdout
Standard output is empty