Ask Question
18 October, 13:26

What are the valid indexes for the string 'new york'?

+4
Answers (1)
  1. 18 October, 17:26
    0
    Most programming languages index strings in a zero-based way. This means the 'n' has index 0, and the 'k', has index 7.

    So valid indexes are from 0 to (and including) 7.

    VBScript would refer to the 'n' as index 1, so always check if your environment is 0-based or 1-based.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What are the valid indexes for the string 'new york'? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers