The strupr(string) function returns string characters in uppercase. Let's see a simple example of strupr() function.
#include#include int main(){ char str[20]; printf("Enter string: "); gets(str);//reads string from console printf("String is: %s",str); printf("\nUpper String is: %s",strupr(str)); return 0; }
Output: