(a) The three type of loops available in C are for, while, and do-while.
(b) A break statement takes the execution control out of the loop.
(c) A continue statement skips the execution of the statements after it and takes the control to the beginning of the loop.
(d) A do-while loop is used to ensure that the statements within the loop are executed at least once.
(e) The ++ operator increments the operand by 1, whereas, the -- operator decrements it by 1.
(f) The operators +=, -=, *=, /=, %= are compound assignment operators. They modify the value of the operand to the left of them.
(b) A break statement takes the execution control out of the loop.
(c) A continue statement skips the execution of the statements after it and takes the control to the beginning of the loop.
(d) A do-while loop is used to ensure that the statements within the loop are executed at least once.
(e) The ++ operator increments the operand by 1, whereas, the -- operator decrements it by 1.
(f) The operators +=, -=, *=, /=, %= are compound assignment operators. They modify the value of the operand to the left of them.
No comments:
Post a Comment