If x=5 and y= ++(++x++)++,what is the values of x and y? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If x=5 and y= ++(++x++)++,what is the values of x and y?

28th Feb 2017, 4:55 AM
Gowtham S Reddy
Gowtham S Reddy - avatar
7 Answers
+ 3
y= ++((++(x++))++) : This might do I suppose
28th Feb 2017, 5:18 AM
Chirag Bhansali
Chirag Bhansali - avatar
+ 1
Error.!
28th Feb 2017, 5:05 AM
Erick Mwenda Njagi
Erick Mwenda Njagi - avatar
0
I doubt if this expression is right
28th Feb 2017, 4:56 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
any reason for this error syntax??
28th Feb 2017, 5:16 AM
Gowtham S Reddy
Gowtham S Reddy - avatar
0
you got error check this expression are correct or not
28th Feb 2017, 5:18 AM
sreekanth bathini
sreekanth bathini - avatar
0
why can't we apply precedence operation here??
28th Feb 2017, 5:21 AM
Gowtham S Reddy
Gowtham S Reddy - avatar
0
Don't make such confusing statements. I would also recommend to stop paying so much attention to increments. The concept is simple and clear.
28th Feb 2017, 6:18 AM
Zilvinas Steckevicius
Zilvinas Steckevicius - avatar