answersLogoWhite

0


Best Answer

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;

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the fundamental difference between while loops and numeric for loops?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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


Why do we avoid loops in programming?

We don't avoid loops in programming. Loops are a fundamental feature of many algorithms. If we need to iterate over a data sequence in order to perform the same set of operations upon each data element, we would use an iterative loop. If we need to repeatedly reduce a larger problem into one or more smaller instances of the same problem until the problem is small enough to be solved we'd use a recursive loop.


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.


What the difference between pretest loop and posttest loops?

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


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.

Related questions

What is the difference between finale notepad and fruity loops programs?

Finale is for writing sheet music for real instruments. Fruity Loops is for creating electronic music.


What is difference between solenoid and coil?

Solenoid has a longer length compared to its diameter. The Distance between two loops in a solenoid is longer. while Coil has the bigger diameter. The distance between two loops in a coil is shorter compared to its diameter.


What is the difference between radial and ulnar loops?

Why are you posting a question to do with finger print identification in several computer programming wikies.


What is the difference between loops and functions?

LOOP: In loops reusability of the code is restricted to a specific area FUNCTION: In functions reusability of the code is not restricted to specific area.That means you can call the function code from any where in the program


What is the difference between do and while loops in c?

the main difference b/w do and while loops is that do loop will run atleast once even if condition is not satisfied but while loop will not execute even once if condition is not satisfied . this is bcoz in do loop condition is checked after one execution but in while condition is prechecked.


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


Tell 2 or 3 differences in table manner of differences between for and while loops?

Both For and While loops are available for the purpose of executing a piece of java code repeatedly until a particular condition is met. The only difference being - the loop condition/counter has to be modified inside the while loop every time whereas the condition is integrated in the for loop definition. Otherwise both the loops are exactly same in all aspects.


Does the distinction between Ulnar and Radial loops depends on which hand the loop is found on?

Yes


Which cereal floats the longest between frosted flakes and fruit loops?

# sxs xss


What is the difference between actual distance traveled and straight line distance?

Actual distance travel is the total distance you actually traveled, including all the loops and curves. Straight line distance is the direct distance between the 2 places, in a straight line without a curve


Where is froot loops?

Fruit loops is in the pantry.


What are loops on garageband?

Garageband Loops are prerecorded instrumental sections for you to use in your projects. You can find them in Library<Audio<Apple Loops<Apple<Apple Loops for GarageBand