answersLogoWhite

0

The difference is that pre means before and post means after in Latin so it's tested before or after. :)

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
ReneRene
Change my mind. I dare you.
Chat with Rene
More answers

The loop in which first condition is checked and then body of loop is executed,is called pretest loop.

Pretest loops are: for loop and while loop.

The loop in which first the body of loop is executed and then condition is checked,is called post-test loop.In post test loop the body is executed at least ones.

Post-test loop is: do-while loop.

User Avatar

Wiki User

14y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What the difference between pretest loop and posttest loops?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the fundamental difference between while loops and numeric for loops?

There is no such difference, for and while loops are convertible: in: for (exp1; exp2; exp3) stmt; out: { exp1; while (exp2) { stmt; exp3; }} in: while (exp) stmt; out: for (; exp; ) stmt;


Difference of step up and step down in terms of no of loops in the secondary coil?

If the primary coil has ten loops and the secondary coil has five loops then the secondary coil works as a 50% step down


Difference between deterministic and nondeterministic loop?

Deterministic and non-deterministic loops A deterministic loop is predictable. The number of iterations of such a loop are known in advance, even before the loop has started. Most counting loops are deterministic. Before they start, we can say how many times they will execute. A non-deterministic loop is not easily predicted. A loop that is driven by the response of a user is not deterministic, because we cannot predict the response of the user. Non-deterministic loops usually are controlled by a boolean and the number of iterations is not known in advance.


Is the for loop a pretest type of loop?

Pretest loops, such as for-loop, while-loop, execute/evaluate the condition statement first, if the condition is met, then the statements of the loop are executed. If you were referring to the body of the loop being carried out at least once, no, the body will not be touched if the condition fails (pre-test, test BEFORE the [next] execution of the body). But the condition of the loop must have been evaluated at least once.In contrast to the post-test loops, such as do-while, repeat-until, the condition is evaluated AFTER the [next] execution of the body. It is possible that the condition is never evaluate, and not the entire loop body being executed.


C programs using loops?

Loops are very important part of a C-language. If we have to run our programe multiple time then we use Loops of C.