Operators

In the following code fragment, which is the calling object for the less-than operator?
string s1, s2;
if( s1 < s2 )
Choose one answer.

a. s1

b. <

c. s2

d. none

Questions by samah74

Showing Answers 1 - 6 of 6 Answers

a_soni

  • Nov 19th, 2010
 

S1.
As this is the object which appears on the left side of the operator, this is the calling object for it. Whereas S2 is the object which is passed as an parameter to the '<' operator function.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions