Content deleted Content added
Fgnievinski (talk | contribs) |
No edit summary |
||
Line 4:
{{Use dmy dates|date=August 2021}}
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]]'' (a character with
The length of a string is found by searching for the (first) NUL. This can be slow as it takes O(''n'') ([[linear time]]) with respect to the string length. It also means that a string cannot contain a NUL (there is a NUL in memory, but it is after the last character, not {{em|in}} the string).
|