2 ms·
Gotos are common in C for error handling because the other alternative of doing an if/then/else with all the error handling is so verbose. It's used to work aro
by exDM69 15y ago
Gotos are common in C for error handling because the other alternative of doing an if/then/else with all the error handling is so verbose. It's used to work around the lack of exceptions in C.
You still should not use gotos for regular control flow. And jumping backwards with goto is bad practice in most cases.