Empty string
Wikipedia, the free encyclopedia - Cite This SourceIn computer science and formal language theory, the empty string is the unique string of length zero. It is denoted with ϵ or e.
Properties
When present in a formal language, empty strings have several properties:- . The string length is zero.
- . Under concatenation, the empty string is the identity element of the free monoid on the alphabet Σ.
- . Reversal of the empty string produces the empty string.
These properties may hold in some programming languages, but this is left up to the particular implementation.
Representations
| Programming language | ϵ representation |
|---|---|
| C, C++ | |
| Perl | |
| Python | |
See also
Wikipedia, the free encyclopedia © 2001-2006 Wikipedia contributors (Disclaimer)
This article is licensed under the GNU Free Documentation License.
Last updated on Wednesday March 12, 2008 at 17:44:56 PDT (GMT -0700)
View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation