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

c program 22. (12 pts) Write a function called convert to upper)

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 or . Note: you may use array or pointer notation in this function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!