1.

Which function is used to check whether a character is an alphabet or number?(a) isalpha()(b) isalnum()(c) isdigit()(d) isblank()This question was addressed to me during an online interview.The doubt is from Character Classification topic in section Types, Pointers, Arrays & Structures in C++ of C++

Answer»

The correct choice is (B) isalnum()

The EXPLANATION is: Character classification provides isalnum() function to check WHETHER a character in C++ is ALPHABET or number.



Discussion

No Comment Found

Related InterviewSolutions