Skip to content

Comment on The 5-minute Guide to C Pointersparent

Comments

> For me it is the syntax used by C for pointers that makes it confusing.

Personally I don't see much difference between * (C way), ^ (Pascal way) or ref (Algol way).

Or do you mean the declaration order ?

int* ptr; (right to left)

ptr = ^Integer /ref int ptr (left to right)

Yes, it is probably the declaration order which confuses me.

AboutSource Built by g1lg1l

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