Jump Statement in C++
When encountered, jump statements are used to shift program control from one part of the program to any other part of the program unconditionally. In C++, jump statements are implemented using : continue break return goto continue: Within loops or iterative statements, continue statements are used. The continue statement’s goal is to skip the remaining statements of the current iteration of the loop and proceed to the next iteration. Example: Output: break: The break statement allows us to jump out of the loop instantly, without waiting to […]
September 29, 2022 | C++ | No comments