Question: #include using namespace std; int main( ) { char str[80]; cout < = 'A' && str[i]

#include using namespace std;

int main( ) { char str[80];

cout<<"Enter string:"; cin.getline(str, 80);

for(int i=0;str[i]!='\0';i++) { str[i] = (str[i] >= 'A' && str[i] <= 'Z') ? (str[i] + 32) : str[i]; } cout<<"Lowercase string: " << str << endl; return 0; }

3.1 Explain what the program does?

3.2 What is the output?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!