If the state variable contains the string “MI ” (the letters M and I followed by three spaces), which of the following statements will remove the three spaces from the variable’s contents?
a. state.erase(" ");
b. state.erase(3, "");
c. state.remove(2, 3);
d. none of the above
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.