int strtoint(char str[])
{
int i=0,num=0;
int i=0,num=0;
while
(str[i]!='\0')
{
num=num*10+str[i]-'0';
i++;
}
printf("Entered String = \"%s\" , After String to
Int = %d",str, num);
return num;
}
Output:
Output: