fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main()
  6. {
  7. void fun1(int);
  8. void fun2(int);
  9. int fun3(int);
  10.  
  11. int num = 5;
  12. fun1(num);
  13. fun2(num);
  14. }
  15.  
  16. void fun1(int no)
  17. {
  18. no++;
  19. fun3(no);
  20. }
  21.  
  22. void fun2(int no)
  23. {
  24. no--;
  25. fun3(no);
  26.  
  27. }
  28.  
  29. int fun3(int n)
  30. {
  31. printf("%d",n);
  32. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'fun1':
prog.c:19:5: error: implicit declaration of function 'fun3' [-Werror=implicit-function-declaration]
     fun3(no);
     ^
prog.c:9:9: note: previous declaration of 'fun3' was here
     int fun3(int); 
         ^
prog.c: In function 'fun3':
prog.c:32:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
stdout
Standard output is empty