fork(184) download
  1. // Program 2 (Fails in compilation)
  2. void fun(void) { }
  3. int main(void)
  4. {
  5. fun(10, "GfG", "GQ");
  6. return 0;
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:5: error: too many arguments to function ‘fun’
     fun(10, "GfG", "GQ");
     ^
prog.c:2:6: note: declared here
 void fun(void) {  }
      ^
stdout
Standard output is empty