Q. What output will be returned if the following Visual Basic code is executed?
Code:strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("Tn")
β
Correct Answer: (D)
-1
strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("Tn")
You must be Logged in to update hint/solution