Foxhound5366
Honorary Master
What would you say is the value of j? If you are sure of your answer, run the code.![]()
Well, I guess 12 might make some logical sense. The first part (k++) returns 5, while k is incremented to 6. The next part (++k) then increments k (6) before returning its value, meaning that 7 is returned. 5+7 =12. Is that what happened?