Let's check the correct infinite loop:
for(int i=2; i!=0; i-=3)
Step 1: i = 2 (Condition i != 0 is true → executes)
Step 2: i -= 3 (Now i = -1)
Step 3: i != 0? Still true → executes again
Step 4: i -= 3 (Now i = -4)
Step 5: i != 0? Still true → executes again...
This never stops because i will always be != 0.
✅ Correct Answer: (b) for(int i=2; i!=0; i-=3) (Infinite Loop)