🔵 🔵 🔵


Primary

၊၊||၊|။

String ○꠹|Definition|1st|20251119205401-00-⌔

String (computer science) - Wikipedia

String (computer science)

🖼️ ➺

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.

Depending on the programming language and precise data type used, a variable declared to be a string may either cause storage in memory to be statically allocated for a predetermined maximum length or employ dynamic allocation to allow it to hold a variable number of elements.

When a string appears literally in source code, it is known as a string literal or an anonymous string.1

In formal languages, which are used in mathematical logic and theoretical computer science, a string is a finite sequence of symbols that are chosen from a set called an alphabet.

Printed 2026-06-28.

(echo:: @ )

Footnotes

  1. “Introduction To Java – MFC 158 G”. Archived from the original on 2016-03-03. String literals (or constants) are called ‘anonymous strings’

Link to original

Secondary

• • •