Which of the following statements assigns the location of the comma in the amount variable to an

Question:

Which of the following statements assigns the location of the comma in the amount variable to an int variable named loc? 

a. loc = amount.contains(","); 

b. loc = amount.substr(","); 

c. loc = amount.find(",", 0); 

d. None of the above

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

Step by Step Answer:

Question Posted: