+ 2
Explaination about what prod(i,j) i*j is doing and how the value of prod(x+2,y-1) we get? (ans for this code is 10)
#define prod(i,j) i*j int main() { int x=3, y=4; printf("%d \n",prod(x+2,y-1)); return 0; }
4 odpowiedzi
+ 6
It's not doing (x+2)(y-1) as expected but rather x+2*y-1 = 3+2*4-1 = 10
+ 2
You're welcome. Happy coding!
+ 1
Diego Acero thankyou for the Explaination :-)
+ 1
Thanks! 😃Diego Acero