Practice mode C Language

Which standard header declares character functions such as isdigit() and toupper()?

Correct answer B. <ctype.h>

Explanation

declares the character classification functions (isalpha, isdigit, isspace and others) and the conversions toupper and tolower. handles strings and memory blocks, not single characters. The ctype functions take an int that must be representable as unsigned char or equal EOF, so a plain char should be cast to unsigned char first.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.