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