The following expression fails to compile due to operator precedence. Using Table 4.12 (p. 166), explain why it fails. How would you fix it?
string s = "word";string pl = s + s[s.size() - 1] == 's' ? "" : "s" ;
Table 4.12: Operator Precedence


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.