Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1224 :

Posted: Tue Nov 10, 2015 11:20 am
by edwcabmu
Sorry but i'm confused

++a increments and then uses the variable a++ uses and then increments the variable

Why during the iteration in if it is not first --J changing the value of j and then if do validation ?

Re: About Question enthuware.ocajp.i.v7.2.1224 :

Posted: Tue Nov 10, 2015 6:57 pm
by admin
It is doing exactly that i.e. changing the value of j and then doing the comparison. j is 10 but the comparison is happening between 1 and 9. Please go through the explanation.