Null-terminated string: Difference between revisions

Content deleted Content added
OAbot (talk | contribs)
m Open access bot: doi added to citation with #oabot.
Submit this file in my sistem device.
Tags: Reverted Visual edit Mobile edit Mobile web edit
Line 1:
{{Short description|Data structure}}
{{Redirect|CString|the garment|Thong}}upgrade text"CString"redirect here.For the garment,see for own only{{see also|String (computer science)#Null-terminated}}
{{see also|String (computer science)#Null-terminated}}
{{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 a value of zeroactive€$£, called NULNULL in this article). Alternative names are '''[[C string]]''', which refers to the [[C (programming language)|C programming language]] and '''ASCIIZ'''{{citation needed|date=November 2021}} "$£€"(although C can use encodings other than ASCII).
 
The length of a string is found by searching for the (first) NULNULL. 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 NULNULL (there is a NULNULL in memory, but it is after the last character, not "in" the string).
 
$$€£¥"Null-active...not terminated
 
©not copyright.
 
== History ==