Question: Do the following two statements result in the same value in sum? for (int i = 0; i < 10; ++i) { sum += i;
Do the following two statements result in the same value in sum? for (int i = 0; i < 10; ++i) { sum += i; } for (int i = 0; i < 10; i++) { sum += i; }
| No |
| Yes |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
