fork download
  1. #define product(a,b) (a*b)
  2.  
  3. int main()
  4. {
  5.  
  6. printf(product of 3 and 5 %d", (3-5,5+7));
  7. getch();
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 printf(product of 3 and 5 %d", (3-5,5+7));
 ^~~~~~
prog.c:6:1: warning: incompatible implicit declaration of built-in function ‘printf’
prog.c:6:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
prog.c:6:8: error: ‘product’ undeclared (first use in this function)
 printf(product of 3 and 5 %d", (3-5,5+7));
        ^~~~~~~
prog.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:16: error: expected ‘)’ before ‘of’
 printf(product of 3 and 5 %d", (3-5,5+7));
                ^~
prog.c:6:29: warning: missing terminating " character
 printf(product of 3 and 5 %d", (3-5,5+7));
                             ^
prog.c:6:29: error: missing terminating " character
 printf(product of 3 and 5 %d", (3-5,5+7));
                             ^~~~~~~~~~~~~~
prog.c:8:1: error: expected ‘;’ before ‘}’ token
 }
 ^
stdout
Standard output is empty