Empty string

From Wikipedia, the free encyclopedia

In computer science and formal language theory, the empty string is the unique string of length zero. It is denoted with "λ" or sometimes ϵ.

[edit] Properties

When present in a formal language, empty strings have several properties:

These properties may hold in some programming languages, but this is left up to the particular implementation.

[edit] Representations

Programming language λ representation
C, C++
""
{'\0'}
null
Perl
""
''
qw()
Python
""
''
str()
C#
""
string.Empty
JAVA
""
null

[edit] See also