User Tools

Site Tools


string_literal

String Literal

Return to String, Anonymous string, Raw String, Kotlin glossary, Programming glossary, Kotlin

Sequence of zero or more characters enclosed in double quotes (“a string literal”).” It is “literally a string” (CppPrmLp 2012)

Snippet from Wikipedia: String literal

A string literal or anonymous string is a literal for a string value in the source code of a computer program. Modern programming languages commonly use a quoted sequence of characters, formally "bracketed delimiters", as in x = "foo", where "foo" is a string literal with value foo. Methods such as escape sequences can be used to avoid the problem of delimiter collision (issues with brackets) and allow the delimiters to be embedded in a string. There are many alternate notations for specifying string literals especially in complicated cases. The exact notation depends on the programming language in question. Nevertheless, there are general guidelines that most modern programming languages follow.


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


string_literal.txt · Last modified: 2024/04/28 03:39 (external edit)