Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which function is used to check whether a character is tab or space or whitespace control code(\n,\r,etc.)?

a) isspace()
b) isalnum()
c) iscntrl()
d) isblank()

Answer: a
Explanation: Character classification provides isspace() function to check whether a character in C++ is tab or space or whitespace control code(\n, \r, etc.).

Join The Discussion