Answer to Question #3317 in C++ for mukunda
Write a program to change the string from upper to lower and lower to upper vice versa.
1
2011-07-08T05:28:22-0400
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char str1[] = "hello", str2[] = "WORLD";
strupr(str1);
strlwr(str2);
cout << str1 << " " << str2 << endl;
return 0;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment