+ 1

I am not able to get it?

#include<studio.h> #define square(x) x*x Int main() { printf("%d",square(4-1)); return 0 } Answer is -1 How

21st Jun 2019, 4:58 PM
Prashant Kumar
Prashant Kumar - avatar
2 Respuestas
+ 8
#define square(x) x*x square(4-1) = 4-1*4-1 = 4-4-1 = -1 #define square(x) (x)*(x) square(4-1) = (4-1)*(4-1) = 9
21st Jun 2019, 5:34 PM
Anna
Anna - avatar
21st Jun 2019, 5:51 PM
Danijel Ivanović
Danijel Ivanović - avatar