Content deleted Content added
No edit summary Tags: Reverted Visual edit Mobile edit Mobile web edit |
Reverted good faith edits by 2405:3800:836:BA23:0:0:0:1 (talk) |
||
Line 1:
{{see also|String (
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]] (
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 string cannot contain a NUL character (there is a NUL in memory, but it is after the last character, not "in" the string).
|