File:String_example.png · Wikimedia Commons · See Wikimedia Commons
string
Sign in to saveAlso known as character string
data type representing a finite sequence of encoded characters
Wikidata facts
- Image
- String example.png
Show 4 more facts
- Stack Exchange tag
- tex.stackexchange.com/tags/strings
- equivalent class
- schema.org/Text
- Commons category
- String (computer science)
- P13411
- language
Sources (2)
via Wikidata · CC0
~34 min read
Article
Strings are typically made up of characters, and are often used to store human-readable data, such as words or sentences.
In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. The latter may allow its elements to be mutated and the length changed, or it may be fixed (after creation). A string is often implemented as an array data structure of bytes (or words) that stores a sequence of elements, typically characters, using some character encoding. More general, string may also denote a sequence (or list) of data other than just characters.