Program for string function strupr() in c programming language
/*Program for string
function strupr() in c programming language */
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str1[10];
clrscr();
puts("Enter your
string in lower case : ");
gets(str1);
puts("String in upper
case : ");
strupr(str1);
puts(str1);
getch();
}
=========================
OUTPUT:-
Enter your string in lower
case :
mathematics
String in upper case
:
MATHEMATICS
Comments
Post a Comment