0
writing just x-- as a statement will result in x being 4. x--; // x now equals 4. however, writing x-- in a print statement or assignment of another variable, gives a value of 5 first, then changes to 4 after the Operation is complete. print(x--); // prints out 5, then x becomes 4 a = x-- // a = 5 and x = 4
10th May 2017, 4:39 PM
Nikunj Arora
Nikunj Arora - avatar