previous | start | next

Example

Here are the declarations for the two versions of getInput

  1. void get(int&, int&, int&);
  2. void get(double&, double&, double&);

Which version should be called (1 or 2) for each of the following calls:

    int a, b, c;
    double x, y, z;
    float p, q, r;

    getInput(a,b,c);  // A. 
    getInput(x,y,z);  // B.
    getInput(p,q,r);  // C



previous | start | next