Result of call to toLower(someChar) if someChar='#'

May 11, 2016 at 10:20pm
Hi,

I'm reviewing the entire course material for an upcoming final exam. There is at least one question in my review "packet" to which I cannot find the answer in my textbook, in the professor's PowerPoint presentation, or on Google. (I even changed the phrasing of my Google search) The question is this:
The call to the library function

tolower(someChar)

returns 'g' if someChar is 'G' but returns an unknown value if someChar is '#'.


Will someone please tell me the answer? Thanks.
Last edited on May 11, 2016 at 10:25pm
May 11, 2016 at 10:30pm
That's not a question.
May 11, 2016 at 10:44pm
Read the documentation for the function http://en.cppreference.com/w/cpp/string/byte/tolower
specifically the section describing the return value.
May 12, 2016 at 1:25am
@naraku9333: Thank you.

Just to quote from the link:
Return value
Lowercase version of ch or unmodified ch if no lowercase version is listed in the current C locale.

Topic archived. No new replies allowed.