Saved Bookmarks
| 1. |
Using goto inside for loop is equivalent to using |
|
Answer» 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). |
|