Write a C function to convert all lowercase characters in a string to uppercase. Learn with code and easy explanation.