atol(const char *str) Converts the string pointed to, by the argument str.

atol(const char *str) Converts the string pointed to, by the argument str. Correct Answer to a long integer

long int atol(conat char *str); The atol() function converts the initial portion of the string pointed to by str to long int representation. Except for the behavior on error, it is equivalent to strtol (nptr, (char **)NULL, 10).

Related Questions

Comment on the output of the following C code.
#include int main(){ char *str = "This" //Line 1 char *ptr = "Program\n"; //Line 2 str = ptr; //Line 3 printf("%s, %s\n", str, ptr); //Line 4}
Which of the given function converts the string pointed to, by the argument str to a floating-point number?