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

1 Expert Approved Answer
Step: 1 Unlock

d N... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Microsoft Visual C# Introduction Questions!