fork download
  1.  
  2. #include<stdio.h>
  3.  
  4. void sum(int, int);
  5.  
  6. int main()
  7. {
  8. sum(4,5,6);
  9. return 0;
  10. }
  11.  
  12. void sum(int a,int b)
  13. {
  14. printf("%d",a+b);
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:8:5: error: too many arguments to function ‘sum’
     sum(4,5,6);
     ^~~
prog.c:4:6: note: declared here
 void sum(int, int);
      ^~~
stdout
Standard output is empty