adplus-dvertising
CPP MCQ
Which function is used to check whether a character is a number?
A)
isblank()
B)
isalpha()
C)
isdigit()
D)
isalnum()

Correct Answer : Option (C) :   isdigit()

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