1.

The toupper() function converts a ______ to the corresponding ______(a) uppercase, lowercase(b) lowercase, uppercase(c) binary, decimal(d) decimal, binaryI had been asked this question in unit test.This is a very interesting question from Character Handling in portion String Operations in C of C

Answer»

Correct choice is (b) lowercase, UPPERCASE

The explanation: The toupper() FUNCTION is used to convert a lowercase LETTER to the corresponding uppercase letter.

If the value is a character for which islower() is true and isupper () is true for another set of CHARACTERS, the toupper() function returns the corresponding character, otherwise, the value is RETURNED unchanged.



Discussion

No Comment Found

Related InterviewSolutions