Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
No, there's no way to explain this code. Using the ++ operator in this manner is simply undefined behavior and might be handled differently in various compilers. So simply use only one ++ or -- at the time and everything becomes clear to read and understand. Some would even say - and I mostly agree to that - that the ++ operator shouldn't be used at all.
12th Apr 2020, 10:48 AM
Aaron Eberhardt
Aaron Eberhardt - avatar