Therefore, you must make provisions within your code to catch and handle such exceptions if and when thrown.
It is the recommended way to convert string to an integer.
There are several methods for convert a string into an integer in C like atoi , strtoumax and strol.
Here, we are getting OverflowException.
TryParse is constant over social media with different programmers preferring one method over the other.
Int32 a is now 49 which is of type System.