Typical examples are for and while loops. for instance
for(;;)
{}
and
while(true)
{}
However, basically any cyclic construction without interruption or termination condition will continue indefinitely. Different developers have different opinions about which style is better. In addition, the context may affect which method you choose.
source
share