Skip to content

Comment on How to Think About Variables in Cparent

Comments

It absolutely does return a memory address; it even has the type of a memory address ("int *"). You just can't write to it because it doesn't live in a writable location (an lvalue), for the same reason you can't write:

    (x + 1) = 12
because (x+1) doesn't live in a writable location.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.