Which of the following searches for the string CA in a string variable named state and then

Question:

Which of the following searches for the string “CA” in a string variable named state and then assigns the result to an int variable named result? The search should begin with the character located in subscript 5 in the state variable. The state variable’s contents are uppercase. 

a. result = find(state, 5, "CA"); 

b. result = state.find(5, "CA"); 

c. result = state.find("CA", 5); 

d. result = state.find("CA", 5, 2);

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

Step by Step Answer:

Question Posted: