What will be the values of variables p, q and i at the end of following loop? int p = 5; int q = 18; for(int i=1;i<5;i++) p++; --q;

p: 9 q: 14 i: 4 Explanation: 1. After the first iteration of the loop, p becomes 6. 2. After the second iteration of the loop, p becomes 7. 3. After the third iteration of the loop, p becomes 8. 4. After the fourth iteration of the loop, p becomes 9. 5. After the entire loop, q becomes 14 as it is decremented 4 times and i becomes 4, the value at the end of the loop.