Can anyone solve this question, x++*5-6++x, if x = 5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone solve this question, x++*5-6++x, if x = 5

This was a question based on unary operators

22nd Sep 2020, 4:06 AM
DerAviator
DerAviator - avatar
2 Answers
0
x++*5-6++x, if x = 5 5 * 5 - 6 + 7 = 26
22nd Sep 2020, 4:38 AM
Avinesh
Avinesh - avatar
+ 3
x++*6 = 30 ( x is 5 but increased to 6 ) 5*++x = 35 ( x is 7 ) SO, x++*6-5*++x = -5
22nd Sep 2020, 4:13 AM
Twaatii
Twaatii - avatar