In a for loop, if the condition is missing, then infinite looping can be avoided by a
A. | break statement |
B. | goto statement |
C. | return Statement |
D. | All of the above |
Option: D Explanation : Click on Discuss to view users comments. |
Which of the following comments about for loop are correct?
A. | Index value is retained outside the loop and can be changed from within the loop |
B. | Body of the loop can be empty |
C. | go to can be used to jump. out of loop |
D. | All of the above |
Option: D Explanation : Click on Discuss to view users comments. |
Which of the following comments about for loop are correct ?
A. | Using break is equivalent to using a goto that jumps to the statement immediately following the loop |
B. | Continue is used to by-pass the remainder of the current pass of the loop |
C. | If comma operator is used, then the value returned is the value of the right operand |
D. | All of the above |
Option: D Explanation : Click on Discuss to view users comments. |