Reverse the case of all alphabetic characters in the string.
That is, all upper case characters become lower case and all lower case become upper case. Hello World becomes hELLO wORLD.

So I figured I need to use the toupper and tolower commands. I'm just not to sure how to implement it to check each character individually.

Any help would be great. Thanks.

Recommended Answers

All 2 Replies

Reverse the case of all alphabetic characters in the string.
That is, all upper case characters become lower case and all lower case become upper case. Hello World becomes hELLO wORLD.

So I figured I need to use the toupper and tolower commands. I'm just not to sure how to implement it to check each character individually.

Any help would be great. Thanks.

Check with isupper and islower.

Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.