+ 3
Why conclusion 3?
#include <stdio.h> #define square(x)(x*x) int main() { int x, y=1; x = square(y+1); printf("%d", x); return 0; }
3 Answers
+ 5
Vasiliy
x * x
= y + 1 * y + 1
= 1 + 1 * 1 + 1
= 3
+ 3
Vasiliy
If it was (x) * (x)
Then (y + 1) * (y + 1)
= (1 + 1) * (1 + 1)
= 2 * 2
= 4
+ 3
A͢J - SÍoÍlÍoÍHÍeÍlÍpÍeÍrÍ âşď¸đ
I counted according to the second option