Infinite Loop

Learn about infinite loops in C++.

Introduction

Sometimes, erroneously, we end up writing a piece of code in which a loop condition never evaluates to false and the loop block keeps executing repeatedly. Such types of loops are known as infinite loops.

Get hands-on with 1400+ tech skills courses.