What is string




















Most programming languages provide a data type called 'character' or 'char'. Each character has its own binary pattern. Most programming languages have a data type called a string , which is used for data values that are made up of ordered sequences of characters, such as "hello world".

A string can contain any sequence of characters, visible or invisible, and characters may be repeated. The number of characters in the string is called its length, and "hello world" has length 11 - made up of 10 letters and 1 space. Sign up. Term of the Day. Best of Techopedia weekly. News and Special Offers occasional. Character String. Techopedia Explains Character String.

What Does Character String Mean? Techopedia Explains Character String In many kinds of computer programs, character strings are marked by specific syntax, which often includes quotation marks, and are set up or dimensioned by various programming commands. Share this Term. Related Terms Source Code. Tech moves fast!

For now, we will address only the use of strings and characters as constants. Most modern compilers that are part of an Integrated Development Environment IDE will color the source code to help the programmer see different features more readily. Beginning programmers will use string constants to send messages to standard output. Skip to content Overview A string data type is traditionally a sequence of characters, either as a literal constant or as some kind of variable.

References cnx. Previous: Floating-Point Data Type.



0コメント

  • 1000 / 1000