fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void pierdwiastek(int &x, int &y){x = 1;y = 0;cout<<x<<" "<<y<<endl;}int main() {int x=5,y=8;pierdwiastek(x,y);cout<<x<<" "<<y<<endl;return 0;}
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
1 0
1 0