A string (or string of characters) is a data type used in most programming languages to represent text, and is the focus of this article. |
In Computing, a string (or string of characters) is a data type used in most programming languages to represent text, and is the focus of this article. |
A common representation is an array of characters. The length can be stored implicitly by using a special terminating character (often NUL?) (the programming language C uses this convention), or explicitly (for example by treating the first byte of the string as its length, a convention used in Pascal). |
A common representation is an array of characters. The length can be stored implicitly by using a special terminating character (often NUL?) (the programming language C uses this convention), or explicitly (for example by treating the first byte of the string as its length, a convention used in Pascal). |