0

Why am I getting 27 instead of 343 in macro substitution program

https://code.sololearn.com/cAQeR5sQKVdj/?ref=app

9th Jun 2022, 2:04 PM
Sreenesh
Sreenesh - avatar
3 Respuestas
+ 5
Sreenesh 5 + 2 * 5 + 2 * 5 + 2 = 5 + 10 + 10 + 2 = 27
9th Jun 2022, 2:18 PM
A͢J
A͢J - avatar
+ 5
Sreenesh x = (5 + 2) (5 + 2) * (5 + 2) * (5 + 2) = 343
9th Jun 2022, 2:20 PM
A͢J
A͢J - avatar
+ 2
#define x 5+2 i = x*x*x; 👇 i = 5+2*5+2*5+2; 😉
9th Jun 2022, 2:19 PM
Solo
Solo - avatar