Question: If the strName variable contains the string Sam Harris, which of the following changes the contents of the variable to the string Sam H. Harris?
If the strName variable contains the string “Sam Harris”, which of the following changes the contents of the variable to the string “Sam H. Harris”?
a. strName = strName.Insert(3, " H.")
b. strName = strName.Insert(4, "H.")
c. strName = strName.Insert(5, "H. ")
d. None of the above
Step by Step Solution
3.30 Rating (156 Votes )
There are 3 Steps involved in it
a strN... View full answer
Get step-by-step solutions from verified subject matter experts
