[Cs3] CS-44001-002-201580: CS III PROGRAMMING PATTERNS: An
Mikhail Nesterenko
mikhail at cs.kent.edu
Tue Sep 1 11:39:07 EDT 2015
interesting phenomenon in increment operators
Reply-To:
In-Reply-To: <c2b7df4a10a14fdfb4fce758789e7f81 at BL2PR08MB483.namprd08.prod.outlook.com>
>
> I tested something about increment operators, which you gave us as homework today, and have found an interesting phenomenon. Here's my record.
>
Well, just because a compiler outputs something does not mean that
this is output is correct. The question still stands:
What is the correct output for:
int i =0;
int j = i++ + ++i;
Thanks,
--
Mikhail
More information about the cs3
mailing list