C strupr()

C strupr():

String Functions are the built-in functions provided by C to operate and manipulate a string. C strupr() function converts a string to uppercase letters.

Syntax: 

strupr (string )

Example:

#include<stdio.h>  
#include <string.h>   
 
void main()
{    
char str[10] = "Hello C.";  
printf("%s",strupr(str));    
}

Output

HELLO C.
Please follow and like us:
Content Protection by DMCA.com