C Language Issues in Embedded Development
Use the preprocessor directive #define to declare a constant that indicates how many seconds are in a year (ignoring leap years): #define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL Write a standard macro MIN that takes two parameters and returns the smaller one: #define MIN(A,B) ((A) <= (B) ? (A):(B)) What is the purpose … Read more