Why is paranthesis needed here

#include
#define SQUARE(n) n * n
int main()
{
int j;
j = 64 / SQUARE (4);
printf (“j = %d\n”, j);
return 0;
}

SQUARE(2+5)= 2+5 × 2+5 or 2+(5×2)+5=17, Which is wrong.
But after using parenthesis SQUARE(2+5)= (2+5)×(2+5)=49, This is correct.

I hope, You get this. <3

1 Like