Empty string: Difference between revisions

Content deleted Content added
Tags: Mobile edit Mobile web edit
Line 20:
 
==Use in programming languages==
In most [[programming language]]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.