Problem in isalnum

Whenever I use isalnum, it returns non-zero for an alphabet , but returns zero for an integer.Why??
Last edited on
isalnum(1) returns zero, but isalnum('1') should not. Check that you're using single quotes correctly.
What about a string
What about a string

A string contains a series of characters. Each character can be tested individually.
Topic archived. No new replies allowed.