// -------------------------------------------------------------------- #include using namespace std; int uneFonction(int a, int & b,int *c){ a += 1; b += 3; *c += 4; return a+b+(*c); } int main() { int a = 3, b = 4,c=5; cout << "sortie:" << uneFonction(a,b,&c) << endl; cout << "a= " << a << " b= " << b << " c= " << c << endl; a = 3, b = 4, c=5; cout << "sortie:" << uneFonction(b,c,&a) << endl; cout << "a= " << a << " b= " << b << " c= " << c << endl; a = 3, b = 4,c=5; cout << "sortie:" << uneFonction(a,a,&a) << endl; cout << "a= " << a << " b= " << b << " c= " << c << endl; return 0; } // --------------------------------------------------------------------