New course! Every coder should learn Generative AI!
Try a free lesson+ 2
How to make an loop infinite in cpp ?
4 Answers
+ 7
Make a while loop with a condition, that's always true. Like while( true ). :)
+ 4
for( ; ; ){
your logic
}
0
while(1)
{ cout<< ("infinity loop"); }
0
while (true) {
//code
}