If the state variable contains the two letters MI followed by three spaces, which of the following

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 variable’s contents? 

a. state.erase(" "); 

b. state.erase(3, ""); 

c. state.remove(2, 3); 

d. None of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: