cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Problem in isalnum
Problem in isalnum
Mar 19, 2016 at 4:08am UTC
ankit137
(7)
Whenever I use isalnum, it returns non-zero for an alphabet , but returns zero for an integer.Why??
Last edited on
Mar 19, 2016 at 4:16am UTC
Mar 19, 2016 at 5:09am UTC
helios
(17575)
isalnum(1)
returns zero, but
isalnum(
'1'
)
should not. Check that you're using single quotes correctly.
Mar 19, 2016 at 1:18pm UTC
ankit137
(7)
What about a string
Mar 19, 2016 at 1:34pm UTC
Chervil
(7320)
What about a string
A string contains a series of characters. Each character can be tested individually.
Topic archived. No new replies allowed.