string literal
string literal
A contiguous set of alphanumeric characters declared in the source code of a program. String literals, which are typically descriptive titles and messages, are output to the screen or printer as written. Depending on the programming language, escape codes for line breaks and such may be inserted within the string and executed as commands. Contrast with numeric literal. See string and escape code.
In the following C example, which uses the backslash as an escape character, "Hello World" is displayed on two lines followed by one blank line:
printf ("Hello\nWorld\n\n");
Hello World
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 2003-2025 Farlex, Inc
Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.