In a for loop, if the condition is missing,then?
it is assumed to be present and taken to be false
it is assumed to be present and taken to be true
it result in the syntax error
execution will be terminated abruptly
Answers
Answered by
7
The answer is 'it is assumed to be present and taken to be true'
Explanation:
In programming, the for-loop is a decision control flow statement in which code to be executed again and again for specific times. It allows you to specify the initialization, test-condition, iteration condition. A 'for' loop can be written without initialization.
We can leave out any or all three of them at a time. The main body of for loop executed initially and the control returns to the increment statement. Then the test condition checked and when it is true, for loop executes the statement body.
Similar questions
Hindi,
6 months ago
Hindi,
6 months ago
Computer Science,
1 year ago
English,
1 year ago
Math,
1 year ago