+ 1
Explain me this code please
#define sqr(X)X*X Int X=16/sqr(4); printf ("%d",X); Why it's answer is 16??
2 Answers
+ 3
#define replaces every instance of sqr(X) with X*X.
So following this :-
16/sqr(4)
Is replaced by
16/4*4
And by *BODMAS* it solves to 16
Hence the output is 16
+ 1
Got it bro thanks ☺️