menu search
brightness_auto
more_vert

What are the jumping statements in C Language and how these work?

thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
Best answer

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:

  1. goto
  2. break
  3. continue
  4. 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.

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

Related questions

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

648 users

...