Content deleted Content added
Suradadi Tags: Reverted Visual edit Mobile edit Mobile web edit |
Reverted 2 edits by 114.142.168.52 (talk): Off-topic links |
||
Line 4:
{{Use dmy dates|date=August 2021}}
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).
==
Null-terminated strings were produced by the <code>.ASCIZ</code> directive of the [[PDP-11]] [[assembly language]]s and the <code>ASCIZ</code> directive of the [[MACRO-10]] macro assembly language for the [[PDP-10]]. These predate the development of the C programming language, but other forms of strings were often used.
|