1.

Which function is used to check whether a character is an alphabet?(a) isalpha()(b) isalnum()(c) isdigit()(d) isblank()I had been asked this question by my school principal while I was bunking the class.My doubt is from Character Classification topic in chapter Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Correct option is (a) ISALPHA()

The explanation: CHARACTER CLASSIFICATION provides isalpha() FUNCTION to check whether a character in C++ is an alphabet or not.



Discussion

No Comment Found

Related InterviewSolutions