Well, of course, there are a lot of problems.
- max actually computes min increment operators
- double for any choice since you are using a macro
- using postfix / prefix increments is simply thrown to confuse, but doesn't really matter for the problem.
This code will give the same results every time it runs, so no, it's not undefined. In cout:
i = 11 k = 7 j = 7
That sounds like a bad home problem. :)
source share