Sujet : Re: Fscking Pointers.
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.sys.raspberry-piDate : 27. Mar 2025, 00:57:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vs249r$2s4s3$4@dont-email.me>
References : 1 2
User-Agent : Pan/0.162 (Pokrosvk)
On Wed, 26 Mar 2025 20:14:18 GMT, David Higton wrote:
Pointers in C are incremented by the size of whatever they point to.
Yes, I've found it very frustrating in the past, too.
It was an attempt to unify address arithmetic, involving both arrays and
pointers, under a common paradigm. I am surprised that people still
continue to be surprised by it. Wasn’t it covered in whatever introduction
to C the kids are reading these days?
“It’s not a bug, it’s a feature!”