Answers for "check if a string isa number c"

C
4

c string is int

int isNumber(char s[])
{
    for (int i = 0; s[i]!= '\0'; i++)
    {
        if (isdigit(s[i]) == 0)
              return 0;
    }
    return 1;
}
Posted by: Guest on October-25-2020

Code answers related to "check if a string isa number c"

Code answers related to "C"

Browse Popular Code Answers by Language