Infinte Loop is the loop where loop continously run, and chances of condition become false is 0.
Infinte loop in for loop:
-In this, value of i is always greator then 0 so loop continue run.
Infinite Loop in while loop:
-In this, while(1) refers as always true