Computer Science, asked by sachinkumar2648, 1 year ago

Why can't a goto statement be considered a looping structure?


CyberAkay: You can at least thank me for answering the question.

Answers

Answered by CyberAkay
0
Dear Friend,

Kindly mark the answer as brainliest if you find it useful.

Here is what you were looking for:

The looping structure in any programming language is defined to reduce the amount of code required in a program. Instead of writing a ton of code you can simply add a looping structure and your whole work is done, saving a lot compiling and hard work. So a looping structure must fulfill this basic idea.

Whereas a Go-to statement is just designed to transfer control in a particular program. Neither it takes input nor does it represents a ton of coding. Since the basic idea of looping is not fulfilled, therefore it cannot be considered as a looping structure.


Hope this clears your doubt.✌️

DO FOLLOW ME FOR MORE SUCH QUALITY ANSWERS.
Answered by FallenLove
2

Answer:

\huge{\underline{\underline{\textsf{\textbf{Aηѕωєя࿐}}}}}

  • The looping structure in any prôgramming language is defined to reduce the amount of côde required in a prôgram. Instead of writing a ton of cõde you can simply add a looping structure and your whole work is done, saving a lot compiling and hard work. So a looping structure must fulfill this basic idea.
  • Whereas a Go-to statement is just designed to transfer control in a particular program. Neither it takes input nor does it represents a ton of coding. Since the basic idea of looping is not fulfilled, therefore it cannot be considered as a looping structure.
Similar questions