Empty string: Difference between revisions

Content deleted Content added
m Added an example of creating the empty string in the Rust programming language
Tags: Mobile edit Mobile web edit
Line 20:
 
==Use in programming languages==
In most [[programming languageslanguage]]s, [[String (computer science)|strings]] are a [[data type]]. Strings are typically stored at distinct [[memory address]]es (locations). Thus, the same string (for example, the empty string) may be stored in two or more places in memory.
 
In this way, there could be multiple empty strings in memory, in contrast with the formal theory definition, for which there is only one possible empty string. However, a string comparison function would indicate that all of these empty strings are equal to each other.
Line 90:
 
Empty lines of text show the empty string. This can occur from two consecutive [[End of line|EOLs]], as often occur in [[text file]]s, and this is sometimes used in [[text processing]] to separate [[paragraph]]s, e.g. in [[MediaWiki]].
 
 
==See also==