Given the following class, what is syntactically wrong with the implementation of the display function?

class Rational
{
public:
Rational();
Rational(int numer, int denom);
Rational(int whole);

int getNumerator();
int getDenominator();

friend void display(ostream& out, const Rational& value);
private:
int numerator;
int denominator;
};

void display(ostream& out, const Rational& value)
{
out << value.getNumerator() << '/"< }
a. nothing
b. value must be not be pass by reference
c. The get functions are not const functions
d. out should be pass by value


c. The get functions are not const functions

Computer Science & Information Technology

You might also like to view...

_______ view is convenient for building the basic structure of your presentation and for adding speaker notes.

A. Outline B. Normal C. Slide Sorter D. Default

Computer Science & Information Technology

Sixteen bits make up ____ bytes?

A. 8 B. 4 C. 2 D. Depends on the operating system.

Computer Science & Information Technology

The recommended length for a resume for a student just graduating from college is one page or at the most two pages.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

COGNITIVE ASSESSMENT Your company has elected to offload all storage management to an outside organization. What is the term for this?

A. fiber channeling B. RAID C. NAS D. outsourcing

Computer Science & Information Technology