0
Can I use "goto statement" instead of Recursion in C/C++?
I think the work of "goto" and a recursive function is almost same. So, is it possible to replace Recursion by Goto statement?
2 Réponses
+ 2
the result is just about the same but it's several times slower and makes your code harder to read. so i don't recommend using it
- 1
You should avoid goto at all...
It's not good style.