answersLogoWhite

0


Best Answer

A function is set of instruction that perform some specific operation . There are two type of loops one is finite and other is infinite. A finite loop is one that end after finite runs and an infinite loop is one that never ends itself.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

1w ago

A finite loop executes a specific number of times based on its condition, while an infinite loop runs indefinitely without cessation. Finite loops have a predetermined endpoint, while infinite loops continue without a defined stopping condition until manually interrupted. Improperly written infinite loops can lead to system crashes or unresponsive programs.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

A finite loop ends itself. An infinite loop will not end without an outside cause.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Differences between finite and infinite loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Educational Theory

Write a program using while loop?

//program to find the factorial value f any number using while loop #include<stdio.h> void main() { int i,n,fact=1; printf("Enter the number\n"); scanf("%d",&n); i=n; while (i>=1) { fact=fact*i; i--; } printf("The factorial value=%d",fact); } the above is a program for calculating tha factorial value of any number which is entered by the user


Differences between digital differential analyzer and bresenham algorithm?

The Digital Differential Analyzer (DDA) algorithm calculates the pixels along a line by dividing the distance between the two endpoints, while Bresenham's algorithm uses integer arithmetic to plot the pixels more efficiently. The DDA algorithm can be slower due to floating-point calculations, while Bresenham's algorithm is typically faster and more accurate for drawing lines on a raster display.


In the Rosenthal study of academic bloomers the children who improved their performance over the year did so because of their teachers'?

Higher expectations and increased support. Teachers who believed in the students' potential and provided additional resources and encouragement helped them excel academically. This support created a positive feedback loop that motivated the students to work harder and achieve greater success.


What is the difference between artificial neural network and hidden Markov model methods?

Artificial neural network is a machine learning model that processes data in a non-linear way, while hidden Markov model is a statistical model that deals with sequential data and uses probabilities to model transitions between states. In neural networks, the focus is on learning the underlying patterns within the data, while in hidden Markov models, the emphasis is on estimating the probabilities of transitioning between different states.


What are classical theories of motor learning?

Classical theories of motor learning include Fitts and Posner's stages of motor learning, which consist of cognitive, associative, and autonomous stages. Adams' closed-loop theory focuses on feedback control during movement execution. Bernstein's systems theory emphasizes the coordination of different body segments to produce skilled movements.

Related questions

What do you mean by finite and infinite loop explain?

what do you mean by looping?


How do you write a infinite for loop?

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


What are the differences between iterations and loops in progamming?

A loop will loop for n iterations. Each times the program executes the code in the loop is an iteration.


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

Infinite 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.


What is the difference between finite open loop gain and closed loop gain?

In a closed loop system the gain without the feed back loop being closed is called open loop gain!!! e.g if forward gain is "A" and feed back factor is "B" then open loop gain is "AB" and closed loop gain will be [A/(A+B)]


What is an infinite loop in c plus plus?

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'


When a VBScript loop control variable is not altered during loop execution what kind of loop may result?

An infinite loop.


How do you fix an infinite loop?

It comes from its name: it doesn't terminate, the user have to interrupt the program-run (in the worst case: power off the computer).The infinite loop is also used to program loops with non-easily-deterministically end-of-loop conditions.You write an infinite loop, such as for (;;) {statements}, and break out of the loop with the break statement when ready to terminate.


What are the release dates for Infinite Loop - 2012 II?

Infinite Loop - 2012 II was released on: USA: 24 November 2012 (internet)


The Loop it's best to be out of?

An infinite loop - one that never stops. Unless that is what you intended.


What is a Python loop?

A Python loop is something that will always happen or continue to happen until the condition isn't met. So for example:while 1==1:print("Infinite loop")would be an infinite loop, as 1 will ALWAYS be equal to 1.