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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.