Jump to content

Null-terminated string

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sewing (talk | contribs) at 16:23, 10 October 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

C strings are strings stored as one-dimensional character arrays in the C and C++ programming languages. In C, they are simply called "strings," while in C++ they are called "C strings" to differentiate them from STL (ANSI standard C++) strings. C strings are distinguished by the fact that they are terminated with a null character ('\0').