Question: If the state variable contains the two letters MI followed by three spaces, which of the following statements will remove the three spaces from the
If the state variable contains the two letters MI 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
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
d N... View full answer
Get step-by-step solutions from verified subject matter experts
