Which changes introduced independently will allow code to compile and display 0 18 9 (choose all that apply)

Which changes introduced independently will allow code to compile and display 0 18 9 (choose all that apply)


A. operator int() const {return a;} inserted at Place 1
B. bool operator < (const A & b) const {return a<b.a;} inserted at Place 1
C. bool operator < (const A & b) const {return b.a<a;} inserted at Place 1
D. bool operator < (const A & a, const A & b) {return a.getA()<b.getA();} inserted at Place 2

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPP

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.