If you construct an array by initializing it element by element you get an array, one that is not nul-delimited or 'of conceptually unlimited length', whatever that may mean.
If you construct a string by initializing a character array with a string, you get a nul-delimited string implemented under the hood|bonnet as an array. String manipulation is flawed in C, problematic because the view of a string as an array of single characters is yet another example of too much hacking about with Ockham's razor. --jg On 9/4/12, Paul Gilmartin <paulgboul...@aim.com> wrote: > On Tue, 4 Sep 2012 07:57:17 -0700, Charles Mills wrote: > >>Just because you *can* create a malformed string with no delimiter does not >> mean that my statement about proper C behavior is untrue. >> > And here, I find myself in rare agreement with John G.'s view > (if I understand correctly). A char[] containing no \0 is a perfectly > valid array of char. It is not a string, by C's convention, and there > is no requirement that a char[] represent a string. > >>On Tue, 4 Sep 2012 06:22:43 -0700, Charles Mills wrote: >>> >>>char[] delimits strings with '\0' in every implementation in the world, I >>>think. > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN