+ 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 Respostas
+ 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