Friday, 12 August 2016

strupr: Convert from Lower case to Upper case using Library function

String: strupr(string)

Convert from Lower case to Upper case using Library function


#include<stdio.h>
#include<string.h>
main()
{
                char s[60];
                printf("\nEnter string:\t");
                gets(s);
                printf("\nString in uppercase: %s", strupr(s));
}

Output:
Enter string:   Hello How Are You
String in uppercase: HELLO HOW ARE YOU

No comments:

Post a Comment