On Thursday, 25 January 2018 18:24:14 UTC-5, Jim Idle wrote: > > This behavior is correct. Pre-increment (++v) increments the variable and > uses its value. Post-increment uses the current value, THEN increments the > value at the end of the operation. > > Isn't the issue being reported that the value for K is not correct immediately after assignment? See lines 14 and 18 in the original program.
In each case, K is assigned a value of 2 (K=2, lines 14 and 18), yet the first time K is output to the screen (lines 15 and 19), the value shows as 3, not 2. -- Kevin Powick -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en --- You received this message because you are subscribed to the Google Groups "jBASE" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
