3

The types char, short, int, long int, and long long int are often referred to as integer types. Per its manual, the function atoi takes a value of type const char *. I assume your variable named k is of type char [] or char * in which case k[step] would actually be of type char. There is no implicit conversion of an integer type to a pointer type and that ...


2

An exception is sort of a tolerable error. When you write some code that might throw an exception, you better enclose it with a try block. If an exception occurred, you may catch it with a catch block. Basically, catch blocks contain code (usually to display an error message) to be interpreted when the specified exception is caught (aka exception handling). ...


Only top voted, non community-wiki answers of a minimum length are eligible