Wednesday, April 22, 2009

Puzzle 17 – Solution

This is a pretty straight puzzle and evaluation takes place as follows,

Step 1 – j = 5 + i++;
Step 2 – value of i incremented: i = 6
Step 3 – j = 5 + 6 == 11
Step 4 – value of i incremented: i = 7

Output –
Value of i : 7
Value of j : 11

Congrats to
1. Turki
2. Minocha
3. Kannan
4. Doughty Dan
for getting the answer right.

No comments:

Post a Comment

Solution for this question?