Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started