logoalt Hacker News

danborn26today at 1:08 PM1 replyview on HN

The way C handles array decay to pointers always trips up beginners, but it's exactly what makes passing data around so lightweight. Good writeup on a classic quirk.


Replies

fredrikholmtoday at 1:53 PM

Agreed, I even find it surprisingly ergonomic. Thinking of data as offsets into memory is unusual coming from almost every other language, but once you grokk it it's actually quite nice.

I love C more than I should.