#define doubts | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#define doubts

#define x 5+2 int main() { int i; cout<<x*x*x<<endl; //This gives 27 cout<<(x)*(x)*(x)<<endl; //This gives 343 why? }

6th Dec 2018, 2:34 AM
Abhinav Verma
2 Answers
+ 5
Have you tried replacing every instance of "x" with "5+2"? (hint: try that)
6th Dec 2018, 2:52 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Thanks. Got it
6th Dec 2018, 3:28 AM
Abhinav Verma