Skip to content
string

File:String_example.png · Wikimedia Commons · See Wikimedia Commons

EntityQ184754· pop 47· linked from 1,120 articles

Also known as character string

data type representing a finite sequence of encoded characters

Wikidata facts

Subclass of
data type
Has part
character
Image
String example.png
Said to be same as
array data structure
Show 9 more facts
equivalent class
schema.org/Text
topic has template
Module:String2
Commons category
String (computer science)
implementation of
plain text
different from
string
maintained by WikiProject
WikiProject Mathematics
P13411
language
Sources (2)

via Wikidata · CC0

~34 min read

Encyclopedic overview

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.

Excerpted from Wikipedia’s “string” article, available under the CC BY-SA 4.0 licence.

Gallery (2)