Review Questions
1: | Here are groups of one or more macros followed by a source code line that uses them. What code results in each case? Is it valid code? (Assume C variables have been declared.)
|
2: | Fix the definition in 1d to make it more reliable. |
3: | Define a macro function that returns the minimum of two values. |
4: | Define the EVEN_GT(X,Y) macro that returns 1 if X is even and also greater than Y. |
5: | Define a macro function that prints the representations and the values of two integer expressions. ... |
Get C Primer Plus, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.