Question: If c is a lowercase character, the expression c - 'a' + 'A' produces the uppercase equivalent of c, assuming an ASCII character set. Write

If c is a lowercase character, the expression

c - 'a' + 'A'

produces the uppercase equivalent of c, assuming an ASCII character set.

Write a function in C called uppercase() that converts all lowercase characters in a string into their uppercase equivalents.

Your main program will prompt the user for an input string up to 50 characters. Be clear in your prompts to the user.

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!