can someone give me an example of try catch in C, everytime i do it under the main, i get some try undeclared error, and dont know how to fix it...
Humm, the C language does not have a try/catch exception handling mechanism. C# and C++ do. Typically you would use setjump/longjump to implement try-like exception handling in C.
Microsoft version has implemented try catch in C itself deviating from the ANSI standard of C language.
C language does not support the try-catch mechanism. It has been introduced recently in ANSI Standards.
---------- Post updated at 08:51 PM ---------- Previous update was at 08:50 PM ----------
Yes, you are totally right.