The macro function SQR(x)(x*x) calculate the square of the given number 'x'. (Eg: 102)
Step 1: int a, b=4; Here the variable a, b are declared as an integer type and the variable b is initialized to 4.
Step 2: a = SQR(b+2); becomes,
=> a = b+2 * b+2; Here SQR(x) is replaced by macro to x*x .
=> a = 4+2 * 4+2;
=> a = 4 + 8 + 2;
=>a=14