strupr(): Lowercase to Uppercase

We can change lowercase letters to uppercase letters by using strupr() string function.
strupr(input_string);
We will use this and here is one example.
#include <stdio.h>
#include <string.h>
int main(void){
   char str[]="plus2net";
   printf("%s\n",strupr (str));
   return 0;
}
The output of above code is here
PLUS2NET

Example : using strupr() with user input string

#include <stdio.h>
#include <string.h>
int main(void){
   char str[100];
   printf("Enter any string");
   scanf("%s",str);
   printf("Output: %s",strupr(str));
   return 0;
}
Output
plus2net
PLUS2NET
Your Rating




Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer