Discussion Forums

New User? Please read instructions!

C program to convert lower case into upper case and vice versa  

  RSS

thiyagarajan
Eminent Member
Joined: 2 months  ago
Posts: 26
27/01/2017 9:32 am  

C program to convert lower case into upper case and vice versa

Edited: 2 months  ago

ReplyQuote
admin
Eminent Member
Joined: 5 years  ago
Posts: 26
31/01/2017 10:44 am  

Use below C program to convert lower case into upper case. strupr() function is a non standard function. So, all compilers may not support.

#include<stdio.h>

#include<string.h>

int main()

{

    char str[ ] = "Modify This String To Upper";

    printf("%s\n",strupr(str));

    return  0;

}

Output:

MODIFY THIS STRING TO UPPER

 

Use below C program to convert upper case into lower case. strlwr() function is also a non standard function. So, all compilers may not support.

#include<stdio.h>

#include<string.h>

int main()

{

    char str[ ] = "MODIFY This String To LOwer";

    printf("%s\n",strlwr (str));

    return  0;

}

Output:

modify this string to lower

Edited: 2 months  ago

ReplyQuote
  
Working

Please Login or Register

Ask your questions or clarify your/others doubts from,

✅ Online Discussion Forums by Fresh2Refresh.com





Share this website !!!
Facebook Twitter Linkedin

Close
We Support JALLIKATTU !!!
We Support JALLIKATTU!
By Fresh2Refresh.com
Show Your Support as well. Thanks!