Trivial Do/While Loop
A trivial do/while loop is an useful technique in C programming to make a multi-statement macro. Consider the following multi-statement C preprocessor macro and if-statement with two branches: #define aemb(x) { do_this(x); do_that(); } if (x > y) aemb(x); // Branch 1 else aemb(y); // Branch 2 Compiling these codes Read more…