fork(2) download
  1. #include<stdio.h>
  2.  
  3. int calsum(int x,int y, int z);
  4.  
  5. void main()
  6. {
  7. int a,b,c,d;
  8.  
  9. printf("Ënter a,b,c: ");
  10. scanf("%d %d %d",&a,&b,&c);
  11.  
  12. d = calsum(a,b,c);
  13. printf("%d",d);
  14. }
  15.  
  16. int calsum(int x,int y,int z)
  17. {
  18. int d = x + y + z;
  19. return(d);
  20. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Ënter a,b,c: -453964699