fork download
  1. # include<stdio.h>
  2. void fun1();
  3. void fun2();
  4. # pragma startup fun1
  5. # pragma exit fun2
  6. int main()
  7. {
  8. printf("inside main\n");
  9. return 0;
  10. }
  11. void fun1()
  12. {
  13. printf("inside fubn1\n");
  14. }
  15. void fun2()
  16. {
  17. printf("inside fun2\n ");
  18. }
  19.  
  20.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
inside main