Примеры использования Loop body на Английском языке и их переводы на Русский язык
{-}
-
Official
-
Colloquial
The loop body is never executed.
One of the following operators is used in the loop body: break, continue, return, goto.
The loop body is executed only once.
If it is true, the loop body for is executed.
The loop body is executed not more than once.
The next fragment contains a highly suspicious call of the return statement inside a loop body.
However, the loop body executes only once.
If there is nothing to do,nothing is done, even if that means never going through the loop body.
As a result, the loop body is executed only once.
The function's entire code suggests that a large code block was copied into the loop body with just slight edits.
The loop body is always executed at least once.
It differs from a simple operator while by the loop body that is executed at least once.
In the loop body, a variable is declared, coinciding with the one used as a loop counter.
In addition, the k variable is declared in the loop body, its scope is the loop body.
By contrast, the third loop in C, the do-while,tests at the bottom after making each pass through the loop body;
The code is contained in a loop, and the loop body is executed only when insert> 0, so the condition is always true.
In this situation,an infinite loop may occur since the external variable'ret' in the loop body is not changed at all.
It passes the control not to the beginning of the loop body, but to the check of the condition of the loop continuation.
The analyzer doesn't generate the V711 warning for each andevery case when a variable has the same name as that used in the loop body.
The analyzer has detected a variable declared inside a loop body so that its name coincides with that of the loop control variable.
The loop body contains declaration of the"filetime" variable, whose name coincides with that of the variable used to control the loop. .
Since the alloca function uses stack memory,its repeated call in the loop body might unexpectedly cause a stack overflow.
It's also not clear why the programmer uses the value resulting from the previous operations if it's not used elsewhere in the loop body.
If the expression value is not an array or a dictionary, the loop body is not repeated, and the portion between the<!
Changing the variable in the loop body won't affect the loop termination condition in any way(since it's another variable that changes), which may render some part of the termination condition incorrect causing an infinite loop, for instance.
For example, a loop that iterates five times(from 0 to 4 inclusive) can be written as a half-open interval from 0 to 5: for(index 0; index<5;++index){/* Body of the loop*/} The loop body is executed first of all with index equal to 0; i then becomes 1, 2, 3, and finally 4 on successive iterations.
Some errors are found in loops: for example, a loop body never executes or executes exactly once or will be executing forever.
Expressions specified in that portion of the script(called the"loop body") can use the scanner[] scanner reference to access the current element of the expression value.
If the expression value is not an array or a dictionary,the loop body is not repeated, and the portion between the EMPTYFOR scanner--> and ENDFOR scanner--> elements(if any) is processed.
It means that the loop bodies are executed only once.