Question: c program 22. (12 pts) Write a function called convert to upper) that accepts one argument that is a pointer to a character array (a
c program

22. (12 pts) Write a function called convert to upper) that accepts one argument that is a pointer to a character array (a string), which consists of alphabetic characters (lowercase and uppercase, a - z) only. The function must convert only the lowercase alphabetic characters to uppercase. This means you must first check that the character is lowercase ('a' - 'z), and then perform the conversion to uppercase ('A-Z'). Hint: if you know the general organiz then you should be able to check if a character is lowercase based on a range of values in the table. You will need to store the uppercase character in place of the lowercase one in the string. To convert a lowercase character to uppercase, recall the following: ation of the ASCI!table, uppercase lowercase , a' + A' You may NOT use any functions from
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
