answersLogoWhite

0


Best Answer

Fixed loop: this is the loop where the number of iterations are known.

Variable loop: Here the number of iterations are not known

Example for a variable loop.

The pseudocode for variable whille loop

begin

character cchoice

display"enter the choice"

accept cchoice

while(cchoice='y')

begin

//execute the statements

end

end

Rkarthikeyan

User Avatar

Wiki User

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

Wiki User

14y ago

A conditional loop will check a conditional statement at the beginning/end of each loop:

char answer;

while(answer == 'y')

{

printf("Loop again? ");

scanf(answer);

}

I'm not sure what a fixed loop is, maybe you are referring to an infinite loop?

while(true)

{

printf("Looping forever!\n");

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between fixed loop and variable loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a do while loop and a for loop in c?

the counter variable cannot be initialized in while loop before entering into the block.


What is a fixed loop?

a fixed loop is obviously a loop that is fixed ;D


Difference between loop and array?

A loop usually referred to the program flow control with possible repetition of executing the same codes, an array is an abstraction of fixed size container. 2 different concepts.


What are the index variable in the for loop?

The for loop uses a counter or an index variable to loop through the statements. This variable is used through the loop, changed and finally compared with the loop condition for consideration of the loop's next cycle. The variable(s) used inside the for loop for comparison (with the mentioned condition) and increment/decrement is know as the index variable. for example (Java) : for(int i=1; i<5; i++){ ... } in this example, integer 'i' is the index variable.


A variable declared inside the for loop control cannot be referenced outside the loop?

Yes. A variable declared inside the loop is a local variable for the code block enclosed by the {} statements of the for loop. The variable will not be available to be used by any code outside the code block.


What is the difference between a loop and a whorl fingerprint?

That a loop is curved and a whorl is shaped like a wave.


A countdown loop operates by the loop control variable?

decremented


A loop control variable that is incremented a specific number of times is known as?

A loop control variable is widly known as a "counter".


What is the difference between a loop pedal and a delay pedal?

A Loop pedals recorded sound does not fade (decay).


What is the last step in a loop usually?

increment the loop control variable


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

An infinite loop.


What are the difference between a wire loop and a wire needle?

ewan ko