## Trending News

Promoted

# In the following code fragment: 1. What object is/are being constructed? 2. From what they are being constructed? 3. Which constructor used?

Recall that a rational number has a numerator and a denominator (7/3), but not 3(1/2) or .96.

void f (Rational a);

void f (Rational & a);

inline Rational g (void)

{

Rational t;

return t;

}

//in some function..maybe main?

{

Rational x;

Rational y(4, 3);

Rational z = y;

Rational w(x);

Rational r(-2);

f (x);

x = g( );

### 1 Answer

Relevance

Still have questions? Get your answers by asking now.