Welcome to roadip.com on July 4 2009.
This is an internet experiment running to monitor browsing habbits of individuals through wikipedia contents.

Empty string

From Wikipedia, the free encyclopedia

Jump to: navigation, search

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.

[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'}
C++
std::string()
Objective-C
@""
Perl
""
''
qw()
Python
""
''
str()
C#
""
string.Empty
PHP
""
''
Java
""
Haskell
""
Delphi
''

[edit] See also

Personal tools

Visit joltnews for the latest headlines
Visit bloit.com for company information
Geed Media does computer consulting on long island.
This page viewed times. See Logs