3 ms·
ISO C 99, first sentence of Library clause: "A string is a contiguous sequence of characters terminated by and including the first null character." later in t
by kazinator 6y ago
ISO C 99, first sentence of Library clause:
"A string is a contiguous sequence of characters terminated by and including the first null character."
later in the paragraph:
"A pointer to a string is a pointer to its initial (lowest addressed) character."
The italics indicate that a normative definition is being given. So, the official C terminology is that a pointer to a null-terminated char array is a "pointer to a string".
- rbanffy 6y agoI know that. We do call them strings. We really shouldn't.
- deleted 6y ago[deleted]