fork(4) download
  1. #include <stdio.h>
  2. void eingabe(float& x, float& y, char z );
  3.  
  4. int main(void)
  5. {
  6. float i=5.0, k=8.0;
  7. eingabe( i, k, 'a' ); // Referenzparameter simulieren
  8. printf("Zahl1: %f\nZahl2: %f\n", i, k);
  9. }
  10.  
  11. void eingabe(float& x, float& y, char z )
  12. {
  13. x = 111.111;
  14. y = 222.222;
  15. }
  16.  
  17.  
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Zahl1: 111.111000
Zahl2: 222.222000