Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.lang.c Subject: Re: question about linker Date: Sun, 1 Dec 2024 10:55:30 +0100 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <87plmfu2ub.fsf@nosuchdomain.example.com> <87frnbt9jn.fsf@nosuchdomain.example.com> <877c8nt255.fsf@nosuchdomain.example.com> <20241129142810.00007920@yahoo.com> <20241129161517.000010b8@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 01 Dec 2024 10:55:31 +0100 (CET) Injection-Info: dont-email.me; posting-host="3560575cd5bbdc10d50bb0f5d7f51bf8"; logging-data="2518559"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AAKjxaPN22UsvvHqmxYNl" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:9X77xoI5Wksr7PE3ZdMZd5yBWws= In-Reply-To: Bytes: 2298 On 30.11.2024 16:57, David Brown wrote: > > For most people new to C, it's enough to tell them that "int* a, b;" > declares "a" as a "pointer to int" and "b" as an "int". You tell them > it is a bad idea to write such code, even re-arranged as "int *a, b;", > because it is easy to get wrong - they should split the line into two > declarations (preferably with initialisations). The C newbie will thank > you for the lesson, and move on to write C code without writing such > mixed declarations. That's why the newbies are preferred for programming; they are flexible, cheap, and they do what they are told. ;-) (Sorry, could not resist.) Janis