(--x) Vs (- - x)

int x;
x = (x=1) + (x=7)* (- - x);
System.out.println( x );
why does the output of the above statements differ from the one given below..
int x;
x = (x=1) + (x=7)* (--x);
System.out.println( x );
Thanks in advance....

I think 2007 is better then 2006.
In 2006 everybody ask "why is this code i = i++ <do
something>?"
In 2007 expression is greater and stranger with ( x =
C ) elements and --x instead of i++.
Readers of this forum became smarter. Very good :)You're a bit early to make that assessment, what with the year being less than one month old. The Great Influx of Zero Year schoolkids won't start for 6 months...

Similar Messages

Maybe you are looking for

  • Orton effect in Photoshop

    Is there an easy way in either photoshop or lightroom to create the orton effect if you don't have photoshop elements? 

  • Ethernet Internet & Airport Express Printing at the same time

    Ok Guys: My 18 year old cousin is going off to University this fall, and she will be taking her iMac G5 and a new Macbook with her. She wants to set up her canon printer wirelessly by using an Airport Express. Assuming her Internet access is by ether

  • Why my iPad 5 won't start?

    Hello! Is anyone familiar with thiskind of problem: What should I do as my iPad won't start and it does not react to home button? I can't even reboot it. I have iOS7 in my iPad 5. All hints welcome!

  • Phonebook memory contents

    If one should take out the rechargeable batteries, for whatever reason, in a BT Synergy 5500 cordless phone or any other of similar type, does one lose the contents of stored phone numbers - hopefully not, I'd assume! Solved! Go to Solution.

  • Was wondering how well does the 1Ghz titanium runs Leopard?

    Hi Could some one put up a youtube video of how well leopard runs on the last titanium g4? I mean the minimum for leopard is 800mhz ... but how well does it actually run? is it worth purchasing leopard if you have 1Ghz? Thanks Chris