• Source
    1. //Pasando ParĂ¡metros POR REFERENCIA
    2. #include<iostream>
    3. using namespace std;
    4.  
    5. void duplicar (int& a, int& b, int& c)
    6. {
    7. a*=2;
    8. b*=3;
    9. c*=5;
    10. }
    11.  
    12. int main()
    13. {
    14. int x=1, y=3, z=7;
    15. duplicar(x,y,z);
    16. cout<<"x="<< x <<", y="<< y <<", z=" << z;
    17. return 0;
    18. }