C Preprocessor Exercise C (A, B): Example of calculations using Macro
Duration: 12:0 Min | Sep 07, 2023
(a) If a macro is not getting expanded as per your expectation, how will you find out how is it being expanded by the preprocessor.
(b) Write down macro definitions for the following:
1. To test whether a character is a small case letter or not.
2. To test whether a character is a upper case letter or not.
3. To test whether a character is an alphabet or not. Make use of the macros you defined in 1 and 2 above
4. To obtain the bigger of two numbers