When to use try-catch and when to use if-else?

Hi.
I wonder when to use try-catch and when to use if-else, I think they both achieve the same result.
Last edited on
closed account (48T7M4Gy)
https://stackoverflow.com/questions/5609503/is-there-a-general-consensus-in-the-c-community-on-when-exceptions-should-be-u
Ok.
Before posting my question in here, I searched google, but I wanted other answers, any how thanks.
closed account (E0p9LyTq)
https://isocpp.org/wiki/faq/exceptions
Thanks FurryGuy
Topic archived. No new replies allowed.