The strupr(string) function returns the string characters in the uppercase. It accepts the string as argument to convert in the uppercase
Syntax
char *strupr(char *str);
str: The str represents the given string which we want to convert into the uppercase.
Returns: It returns the Updated string obtained after converting the characters of the given str string to uppercase.
#include<stdio.h>
#include<conio.h>
int main()
{
char str[20];
printf("Enter the string to convert in uppercase");
gets(str);
printf("\nThe original string =%s",str);
printf("\nAfter convert in uppercase string =%s",strupr(str));
return 0;
}
output:
Enter the string to convert in uppercase
The original string =programmingknow.com
After convert in uppercase string =GOJAVAPOINT.com