Computer Science, asked by anilkumarsani, 9 months ago

using goto inside for loop is equivalent to using​

Answers

Answered by SamikBiswa1911
1

Answer:

A goto could be equivalent to any of the statements, continue if the target was at the start of the loop, break if the target was just after the loop or return if the target was at the end of the function and the function has a void return type.  

I would probably plump for continue as both goto and continue are unnecessary (and considered bad practice), whereas both break and return have necessary uses (although break can be abused).

Answered by abigaildsouza510
0

Answer:

using goto inside for loop is equivalent to using​ nothing

Explanation:

The goto statement can be used to alter the flow of control in a program. Although the goto statement can be used to create loops with finite repetition times, use of other loop structures such as for, while, and do while is recommended.

Similar questions