answersLogoWhite

0

An infinite loop is one sequence of commands that just repeats over and over again forever. When it comes to creating an infinite loop you can use the:

for

do while

and do statements.

using the keywords 'true'

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you write a infinite for loop?

for(; ;);..this will do for an infinite loop


Does 'for loop' works in C plus plus?

In C++, a for loop is structured as follows: for( int index = 0; index < 10; ++i ) { //do something }


C plus plus what do you do if im stuck in an infinite loop?

There are three ways out of a loop.1. Satisfy the loop ending condition2. Execute a break statement3. Terminate the programPerhaps you are not changing the value of the variable that is used in the loop ending condition. Perhaps you are using a variable, such as an unsigned int, decrementing it, and expecting it to go negative. Suggest you run the program in a debuger and step through the loop.


What is the shortcut key in laptop to stop infinite loop of turbo c?

567


Is for loop is faster than while loop in turbo c plus plus compiler?

No, why did you think so?


Example of flowchart of while loop in c plus plus?

kk


What is CPU usage small programm c plus plus?

Example: int main (void) { LOOP: goto LOOP; }


How do you alternate the input numbers using for loop in c plus plus?

Input a variable.


How do you convert meters to centimeters in c plus plus using the for loop construct?

It is unnecessary to use a for loop to convert meters to centimeters. Just multiply by 0.01.


A program with a loop that never ends is called an?

Infinite loop.


C plus plus file processing that will input 12 integers?

#include<iostream> #include<vector> int main() { std::vector<int> integers (12); for (size_t loop=0; loop<integers.size(); ++loop) cin >> integers[loop]; }


How do you loop a program in python?

An infinite loop might look something like: while 1==1: print("Infinite loop") as 1 is ALWAYS equal to 1.