# String Index

*noun*

say it: **“STRING IN-deks”** **/strɪŋ ˈɪndɛks/**

The position of one character in a string, counting from 0.

## What is **String Index** in C#?

**String Index** — A zero-based position used to locate a character in a String.

```csharp
class Location
{
    void InspectName()
    {
        string city = "Denver";
        int characterCount = city.Length;
        char firstCharacter = city[0];
        string firstThree = city[..3];
    }
}
```

## In a sentence

- “The first letter of "Dune" is at **index** 0, so title\[0\] is 'D'.”

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=2)

Updated: November 9, 2026

## In other subjects

- [String Index in Java](https://www.ask-codey.com/glossary/string-index)
- [String Index in JavaScript](https://www.ask-codey.com/glossary/string-index-javascript)

Source: https://www.ask-codey.com/glossary/string-index-c-sharp
