Comment

Comment by happytoexplain

Tangential, this note from the other answers confuses me as somebody who has no real C experience:

> The sizeof way is the right way iff you are dealing with arrays not received as parameters. An array sent as a parameter to a function is treated as a pointer

The conclusion is that it's impossible in that scenario, so you can only manually keep track.

But isn't this what dereferencing is for? What's my fundamental misunderstanding?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton