0

How the output is 3 ??

#include <stdio.h> #define square(x) (x * x) int main() { int x, y = 1; x = square(y + 1); printf("%d\n", x); return 0; }

16th Aug 2021, 7:50 PM
NIKHIL JOSHI
NIKHIL JOSHI - avatar
3 Respuestas
+ 5
square(y+1) replaces x so it becomes (y+1*y+1) =3
16th Aug 2021, 7:59 PM
Abhay
Abhay - avatar
0
Abhay ok 😮 so it will send the argument without adding them..
16th Aug 2021, 8:03 PM
NIKHIL JOSHI
NIKHIL JOSHI - avatar