Fiveable
Fiveable

string

Definition

A string is a data type in programming that represents a sequence of characters. It can store letters, numbers, symbols, and even empty spaces.

Analogy

Think of a string as a necklace made up of individual beads. Each bead represents a character, and when you put them together in a specific order, they form a meaningful message or word.

Related terms

Concatenation: Combining two or more strings together to create a new string.

Indexing: Accessing individual characters within a string by their position.

Length: Determining the number of characters in a string.

"string" appears in:

collegeable - rocket pep

Are you a college student?

  • Study guides for the entire semester

  • 200k practice questions

  • Glossary of 50k key terms - memorize important vocab



© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.