Question: What is the difference between a definite loop and an indefinite loop? A definite loop will execute a predictable number of times while an indefinite
What is the difference between a definite loop and an indefinite loop?
A definite loop will execute a predictable number of times while an indefinite loop will execute an unpredictable number of times which depends on circumstances.
A definite loop will execute a constant number of times while an indefinite loop will execute a random number of times based on the random function.
A definite loop can not be terminated prematurely with a break statement but an indefinite loop can.
A definite loop will terminate but an indefinite loop will never stop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
