0 like 0 dislike
34 views
in Computer Science by (1.0m points)
Describe the goto statement and give example.

1 Answer

0 like 0 dislike
by (1.0m points)
The break; continue; and goto; statements are used to alter the normal flow of a program.

Loops perform a set of repetitive task until text expression becomes false but it is sometimes desirable to skip some statement/s inside loop or terminate the loop immediately without checking the test expression. In such cases, break and continue statements are used.

break statement

In C programming, break statement is used with conditional if statement.

The break is used in terminating the loop immediately after it is encountered.

it is also used in switch...case statement. which is explained in next topic.

Related questions

0 like 0 dislike
1 answer 49 views
asked Feb 14, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
0 answers 46 views
0 like 0 dislike
1 answer 72 views
asked Feb 11, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 190 views
asked Nov 8, 2018 in General Science by danish (1.0m points)
0 like 0 dislike
1 answer 42 views
0 like 0 dislike
1 answer 49 views
0 like 0 dislike
1 answer 51 views
0 like 0 dislike
1 answer 41 views
0 like 0 dislike
0 answers 55 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

6.3k users

Free Hit Counters
...