In C Programming, some special statements are used to transfer program control to one location to other location. There are following jumping statements are used in c:
- goto
- break
- continue
- return
1) goto
goto statement is used to jump program's control from one location to define label.
2) break
break statement is used in switch and loop statements, it is used to break the execution of the switch and loop's body and transfer control after the loop/switch statement.
3) continue
continue is used in looping statement, it transfer program's control in the starting of the loop's body.
4) return
Generally return statement is used in function's body, it transfers program's control from called to calling function.