A string is a sequence of characters.
Description
Most programming languages consider characters and strings (e.g. "124:shabooya:\n", "hello world") to be distinct from numbers, which are typically stored in fixed-length binary or floating-point representation.[1]
Variations
- A bit string, such as a byte or word, is a sequence of bits.[1]
- A Procrustean string, named after the Greek legend of Procrustes, is a fixed-length string. If a string value is too long for the allocated space, it is truncated to fit. If it is too short, then it is padded out, usually with spaces or null characters.[2]
References
- ↑ 1.0 1.1 String at the Free On-Line Dictionary Of Computing. 2015-11-29.
- ↑ Procrustean string at the Free On-Line Dictionary Of Computing. 1997-09-12.
External links
- String (computer science) at Wikipedia