Write your own C program to implement the atoi() function

The prototype of the atoi() function is …
int atoi(const char *str);

This function convert the string pointed by pointer str in to the integer, Here is a C program which explains a different way of coding the atoi() function in the C

Note: Above program does not suitable for errorhadling like 2A017 values.


2,680 total views, 10 views today

Leave a Reply