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
a fixed loop is obviously a loop that is fixed ;D
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.
That a loop is curved and a whorl is shaped like a wave.
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.
decremented
the counter variable cannot be initialized in while loop before entering into the block.
a fixed loop is obviously a loop that is fixed ;D
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.
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.
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.
That a loop is curved and a whorl is shaped like a wave.
decremented
A loop control variable is widly known as a "counter".
A Loop pedals recorded sound does not fade (decay).
increment the loop control variable
An infinite loop.
ewan ko