Share on Facebook Share on Twitter Email
Answers.com

Empty string

 
Wikipedia: Empty string

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

The empty string is distinct from a null reference in that in an object-oriented programming language a null reference to a string type doesn't point to a string object and will cause an error were one to try to perform any operation on it. The empty string is still a string upon which string operations may be attempted.

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.

Representations

Programming language λ representation
C, C++
""
{'\0'}
C++
std::string()
Objective-C
@""
Perl
""
''
qw()
Python
""
''
str()
C#
""
string.Empty
Visual Basic .NET
""
String.Empty
PHP
""
''
Java
""
Haskell
""
Delphi
''

See also


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Empty string" Read more