Suppose the string class defines operator== as a class member
with a single string parameter. Assume that no other operator==
are defined, that a constructor for string from const char * is
defined, but operator const char* () is not defined. s is of
type string. Which of the following is illegal?

a. s==s
b. s=="junk"
c. "junk"==s
d. all are illegal
e. all are legal

C

Computer Science & Information Technology

You might also like to view...

To combine a field with any symbols or text, the symbols or text must be enclosed in quotation marks or parentheses

Indicate whether the statement is true or false

Computer Science & Information Technology

The best way to gain your client's confidence is through frequent __________

Fill in the blank(s) with correct word

Computer Science & Information Technology