Re: const and K&R C - was Re: AW: A: a new bug to old plain C
Henrik Holst via Gcc-help <[email protected]>
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <CAGwK9dy6npxRGyEJujBc9247HG2urZecy6vwnPMBRfVnb_9sBA@mail.gmail.com> |
Den lör 6 dec. 2025 kl 07:21 skrev Andrew C Aitchison via Gcc-help < [email protected]>: > On Fri, 5 Dec 2025, J Decker via Gcc-help wrote: > > > It was my understanding of the C standard from K&R days, > > was that pointers could inherit const, but not lose const... > > My recollection is that there was no *const* in K&R C ? > true that, it was added in c89 inspired by the predecessor to C++ /HH > > -- > Andrew C. Aitchison Kendal, UK > [email protected] >