Question: If the amount variable contains the string $56.55, which of the following statements will remove the dollar sign from the variables contents? a. amount.erase($); b.

If the amount variable contains the string “$56.55”, which of the following statements will remove the dollar sign from the variable’s contents? 

a. amount.erase("$"); 

b. amount.erase(0, 1); 

c. amount = amount.substr(1); 

d. Both b and c

Step by Step Solution

3.39 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

d ... 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!