Content deleted Content added
IsaiahOdhner (talk | contribs) m →See also: Add link |
MOS:NOTED, rm "note that" |
||
Line 1:
{{see also|String (computer science)#Null-terminated}}
In [[computer programming]], a '''null-terminated string''' is a [[character string]] stored as an [[Array data structure|array]] containing the characters and terminated with a [[null character]] (<code>'\0'</code>, called NUL in [[ASCII]]). Alternative names are '''[[C string]]''', which refers to the [[C (programming language)|C programming language]] and '''ASCIIZ''' (
The length of a C string is found by searching for the (first) NUL byte. This can be slow as it takes O(''n'') ([[linear time]]) with respect to the string length. It also means that a NUL cannot be inside the string, as the only NUL is the one marking the end.
|