+1 vote
117 views
in C program by (3.4k points)
edited

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

1 Answer

0 votes
by (3.4k points)
selected by
 
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.

Related questions

0 votes
1 answer 136 views
+1 vote
1 answer 115 views
0 votes
1 answer 124 views
asked May 15, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 147 views
0 votes
1 answer 254 views

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

561 users

...