Skip to content

Comment on Why are embedded systems software developers getting a D- in C?parent

Comments

I chose #define SECONDS_PER_YEAR (60 * 60 * 24 * 365) instead of #define SECONDS_PER_YEAR (60 * 60 * 24 * 365UL)

I realised that 365UL would make 16-bit machines happy. I haven't worked on such one from a long time.

I also make a mistake on int (*a)[10], and I had no idea about "volatile const".

AboutSource Built by g1lg1l

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