Simulating try-catch block in C

Using try-catch blocks in any programming language provides a way to handle errors and deal with them in an elegant manner. Not only the code looks beautiful, it is also easy to write and comprehend. try-catch blocks are an integral part of