Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.lang.c Subject: Re: Two questions on arrays with size defined by variables Date: Mon, 10 Feb 2025 02:56:29 +0100 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: <20250209123918.0000754f@yahoo.com> <20250209195711.00001bde@yahoo.com> <8734gmr5ig.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 10 Feb 2025 02:56:30 +0100 (CET) Injection-Info: dont-email.me; posting-host="9a53b9bbf9924f168baa28a2e377f8a7"; logging-data="969024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+P5AqGe3Tr3kcksX3VUp9K" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:qSO6e2qxEkzITF25HKNJzqKPjlI= In-Reply-To: <8734gmr5ig.fsf@nosuchdomain.example.com> X-Enigmail-Draft-Status: N1110 Bytes: 1944 On 10.02.2025 01:46, Keith Thompson wrote: > Michael S writes: >> On Sun, 9 Feb 2025 18:18:04 +0100 >> Janis Papanagnou wrote: > > There's no such thing as a "string object" in C. [...] Since I didn't know what Michael was suspecting as a potential problem I wanted to cover two aspects; assignation s = "literal" and s = strcpy() . (Nothing more was intended to express by my reply.) > [ "C" and C++ considerations of strings character arrays, pointers ] (In C++ I'm not using "C" strings but string objects, plus literal strings of course.) Janis