Comment on Why are embedded systems software developers getting a D- in C?parentComments−malkia16yI 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".
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".