What are the different types of endless loops?
An endless loop can be of two types:
i.) A loop that is intentionally designed to go round and round until the condition within loop is met. Once condition is met, a break function gets program out of the loop.
ii.) A loop condition written by mistake, causing loop to run erroneously forever. Endless loops are also referred to as infinite loops.