1.

The C library function checks whether the passed character is printable.(a) isgraph()(b) isalpha()(c) isprint()(d) ispunct()The question was posed to me in an interview.I'd like to ask this question from Character Handling topic in portion String Operations in C of C

Answer»

Right ANSWER is (c) isprint()

Easiest explanation - int isprint(int c) function is used to CHECK whether the passed CHARACTER can be printed.A CONTROL character is not a PRINTABLE character.



Discussion

No Comment Found

Related InterviewSolutions