Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Is a char array initializer a "string literal"? Date: Tue, 26 Jul 2022 12:03:08 -0700 Organization: None to speak of Lines: 18 Message-ID: <87sfmny9w3.fsf@nosuchdomain.example.com> References: <1e68e656-89b6-42c1-a9e5-3d52387a5255n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="4ccf06c8faeecc2e9e6925153f25a68d"; logging-data="2249126"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188674sMaqIPoN4uMGeSAdH" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:5n2wum88lmfSkeZYOOmO5FcePXM= sha1:rrxvW4lt7c+gev6Q4/MYGiOffUU= Xref: csiph.com comp.lang.c++:85668 Malcolm McLean writes: [...] > C doesn't really have strings. Yes it does. The C standard defines a "string" as "a contiguous sequence of characters terminated by and including the first null character". C has no string *type*, but it certainly does have strings. (C++ has the same thing, but with different terminology. And of course C++ also has the type std::string.) -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */