Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
{{see also|String (computer science)#Null-terminated}}
In [[computer
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).
|