STRUPR() Function – C Program
Write a C Program to converts given string to upper case latter.
STRUPR() Function – The STRUPR() Function used to converts given string to uppercase.
The Syntax of STRUPR() Function :
strupr(str1) – It converts the str1 contains to uppercase.
Example of STRUPR() Function C Program
#include<stdio.h>
#include<string.h>
int main()
{
char str[100];
printf("Please, Enter the String = ");
gets(str);
printf(" \n The Upper case String is = %s",strupr(str));
return 0;
}
The STRUPR() Function C Program output is :
Please, Enter the String = meeraacademy
The Upper case String is = MEERAACADEMY