for loop - definitie. Wat is for loop
Diclib.com
Woordenboek ChatGPT
Voer een woord of zin in in een taal naar keuze 👆
Taal:

Vertaling en analyse van woorden door kunstmatige intelligentie ChatGPT

Op deze pagina kunt u een gedetailleerde analyse krijgen van een woord of zin, geproduceerd met behulp van de beste kunstmatige intelligentietechnologie tot nu toe:

  • hoe het woord wordt gebruikt
  • gebruiksfrequentie
  • het wordt vaker gebruikt in mondelinge of schriftelijke toespraken
  • opties voor woordvertaling
  • Gebruiksvoorbeelden (meerdere zinnen met vertaling)
  • etymologie

Wat (wie) is for loop - definitie

PROGRAMMING LANGUAGE STATEMENT
Loop counter; Do loop; For next loop; For statement; Counter variable; For-loop; Loop variable; Iterative for loop; FOR (DOS command); FOR loops; For (command)
  • For loop illustration, from i=0 to i=2, resulting in data1=200
  • Flow diagram of the following for loop code:
<pre>
for(i=0;i<5;i++)
  printf("*");  
</pre>

The loop will cause five asterisks to be printed.

for loop         
<programming> A loop construct found in many {procedural languages} which repeatedly executes some instructions while a condition is true. In C, the for loop is written in the form; for (INITIALISATION; CONDITION; AFTER) STATEMENT; where INITIALISATION is an expression that is evaluated once before the loop, CONDITION is evaluated before each iteration and the loop exits if it is false, AFTER is evaluated after each iteration, and STATEMENT is any statement including a compound statement within braces ".." that is executed if CONDITION is true. For example: int i; for (i = 0; i < 10; i++) { printf("Hello "); } prints "Hello" 10 times. The for loop is an alternative way of writing a while loop that is convenient because the loop control logic is collected in a single place. It is also closely related to the {repeat loop}. (1999-07-07)
For loop         
In computer science, a for-loop (or simply for loop) is a control flow statement for specifying iteration, which allows code to be executed repeatedly. Various keywords are used to specify this statement: descendants of ALGOL use "for", while descendants of Fortran use "do".
do loop         

Wikipedia

For loop

In computer science a for-loop or for loop is a control flow statement for specifying iteration. Specifically, a for loop functions by running a section of code repeatedly until a certain condition has been satisfied.

For-loops have two parts: a header and a body. The header defines the iteration and the body is the code that is executed once per iteration. The header often declares an explicit loop counter or loop variable. This allows the body to know which iteration is being executed. For-loops are typically used when the number of iterations is known before entering the loop. For-loops can be thought of as shorthands for while-loops which increment and test a loop variable.

Various keywords are used to indicate the usage of a for loop: descendants of ALGOL use "for", while descendants of Fortran use "do". There are other possibilities, for example COBOL which uses "PERFORM VARYING".

The name for-loop comes from the word for. For is used as the keyword in many programming languages to introduce a for-loop. The term in English dates to ALGOL 58 and was popularized in ALGOL 60. It is the direct translation of the earlier German für and was used in Superplan (1949–1951) by Heinz Rutishauser. Rutishauser was involved in defining ALGOL 58 and ALGOL 60. The loop body is executed "for" the given values of the loop variable. This is more explicit in ALGOL versions of the for statement where a list of possible values and increments can be specified.

In Fortran and PL/I, the keyword DO is used for the same thing and it is called a do-loop; this is different from a do-while loop.

Voorbeelden uit tekstcorpus voor for loop
1. Also, "I wasn‘t there," Snider said, "so anything I told you would be hearsay." Now, hearsay, being generally inadmissible in a court of law, would hardly be appropriate for Loop Fans.
2. Boehner (R–Ohio) "need to get on the same page or Republican troubles will continue to mount."Deadline Looms for Loop Contest The effect of Foleygate won‘t be known for a while, but the deadline for entries in the In the Loop Congressional Election Contest is midnight, Oct.10!