Example 55: Arithmetic Operation
Learn how to perform numerous arithmetic operations using macro definitions.
We'll cover the following
Problem
Write down macro definitions for the following:
- To find the arithmetic mean of two numbers
- To find the absolute value of a number
- To convert an upper case alphabet to lower case
- To obtain the biggest of three numbers
Solution
Given below is our recommended way to approach this problem.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.