I have a string that may contain numbers as well as upper and lower case letters. I need to convert all the uppercase letters to lowercase and vice versa. How would one go about this?
Iterate the string and use
isupper() to determine if each character is uppercase or not. If it's uppercase, convert it to lowercase using
tolower(). If it's not uppercase, convert it to uppercase using