Skip to content
RED SAG Skills
medium10 pts · first answer countsembedded-cpreprocessor

A MAX macro with side effects

What goes wrong in this call?

#define MAX(a, b) ((a) > (b) ? (a) : (b))
uint8_t m = MAX(read_sensor(), limit);
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions