Home >>C String functions >C strupr () function

C strupr () function

C strupr () function

C strupr() function converts the given string into uppercase.

Syntax:
Strupr(str)

Note:- Here str is given string.

Parameters:-

It takes string as parameter.

Return type:-

It returns modified string.

Example-1

#include <stdio.h>
#include <string.h>
int main()
{
   char str[ ] = "phptpoint";
   printf("%s\n",strupr (str));
   return  0;
}

Output:
PHPTPOINT

No Sidebar ads