Which line/lines contain an error?

int i = 1;            //1
i = -+(10 + 2 + i);   //2
++i--;                //3
Increment and decrement operators cannot be applied to a variable at the same line.

In what world is "-+" an acceptable operator?

2023 Feb 17, 6:00:22 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Sign Up Now
or Subscribe for future quizzes