Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a function which takes a C string as an input and converts it to all upper

ID: 3534568 • Letter: W

Question

Write a function which takes a C string as an input and converts it to all uppercase characters. For each lowercase character in the C string, simply subtract 32 from it to form the uppercase character. Any non-alphabetic character in the C string should not be changed. You are not allowed to use any other functions to do this. Do not write a main function. Your function does not do any cin
or cout. Hint: lowercase characters are between 'a' and 'z' where the value of 'z' equals the value of 'a' + 25. Remember, C strings are terminated with the '' character. Make sure to properly format all your code.

Explanation / Answer

http://ideone.com/IolESK

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote