Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions