Question: Using the following strings, Answer the following questions Given the string variables str1 and str2 contain you ought to start with logic and ou respectively,
Using the following strings, Answer the following questions Given the string variables str1 and str2 contain "you ought to start with logic" and "ou" respectively, what is the result of each of the following expressions? a. str1.length() b. str1 find(str2) c. str1.substr(4, 25) d. str1.substr(4, 25).find(str2) e. str1.substr.(str1.find("logic"), 3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
