fork(1) download
  1. #include <stdio.h>
  2.  
  3. struct one
  4. {
  5. float a,b;
  6. };
  7.  
  8. float sum(struct one a)
  9. {
  10. return a.a+a.b;
  11. };
  12.  
  13. int main(void) {
  14. struct one calc;
  15. calc.a = 5;
  16. calc.b = 4;
  17. printf("%f", sum(calc));
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
9.000000