Programming String

A programming string is a combination of characters joined together or multiple strings joined in a longer string. It can either remain unchanged or can be changed, depending on the type of string and the programming language. Different languages have mutable (changeable) and immutable (unchangeable) strings. Strings can also be fixed or variable in length. In Python, for example, each character is its own immutable string, and those strings are joined together to form longer strings.

String literals

A string literal is a character or character string that holds the same value and remains unchanged. Instead of using variables to perform a specific function within the string, a string literal remains the same in both code and published content. To denote a string literal within programming, most languages use delimiters, which bracket or set apart the string (often using parentheses, quotation marks, or brackets).

String concatenation

Concatenation joins characters or strings together, often using a symbol called an operator (commonly + ). Concatenation can create compound character strings by joining two strings. Concatenation may not always require an operator for two string literals (in Python, for example). Some programming languages don’t easily concatenate strings and require more complicated functions to join them.

Webopedia Staff
Since 1995, more than 100 tech experts and researchers have kept Webopedia’s definitions, articles, and study guides up to date. For more information on current editorial staff, please visit our About page.

Top Articles

The Complete List of 1500+ Common Text Abbreviations & Acronyms

Text Abbreviations reviewed by Web Webster   From A3 to ZZZ we list 1,559 SMS, online chat, and text abbreviations to help you translate and understand...

Windows Operating System History & Versions

The Windows operating system (Windows OS) refers to a family of operating systems developed by Microsoft Corporation. We look at the history of Windows...

How to Create a Website Shortcut on Your Desktop

Website Shortcut on Your Desktop reviewed by Web Webster   This Webopedia guide will show you how to create a website shortcut on your desktop using...

Generations of Computers (1st to 5th)

Reviewed by Web Webster Learn about each of the 5 generations of computers and major technology developments that have led to the computing devices that...

Spoofing

What is spoofing? As it pertains to cybersecurity, spoofing is when a person disguises...

How to Indent in...

Microsoft Word is a graphical word...

Webcam

A webcam, short for web camera, is a piece of video hardware that...