Suppose that s1 and s2 are given as follows:
string s1(”I have a dream”); string s2(”Computer Programming”);
Assume that each expression is independent. What are the results of the following expressions?
(1) s1[0 ]
(2) s1 = s2
(3) s1 = ”C++” + s2
(4) s2 += ”C++”
(5) s1 > s2
(6) s1 >= s2
(7) s1
(8) s1 <= s2
(9) s1 == s2
(10).s1 != s2
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.