Strupr in c

strupr() function is used to convert a lowercase string to uppercase string.spaces and special characters remains as usual .if there is any capital letter in the string,it remains as usual in the output.

example:

#include
#include
#include
int main()
{
char str[30]="cOdeskulls";
printf(" given word = %s \n" , str);
printf(" uppercase letters = %s\n",strupr(str));
return 0;
}