1.

Which function is used to check whether a character is a number?(a) isalpha()(b) isalnum()(c) isdigit()(d) isblank()I had been asked this question in an international level competition.Enquiry is from Character Classification topic in section Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Right CHOICE is (c) ISDIGIT()

EXPLANATION: Character classification provides isdigit() FUNCTION to check whether a character in C++ is number or not.



Discussion

No Comment Found

Related InterviewSolutions