Question: What is the pseudocode of this c++ code #include using namespace std; int main( ) { char str[80]; cout < = 0; i--) { cout

What is the pseudocode of this c++ code
#include
using namespace std;
int main( )
{
char str[80];
cout<<"Enter string: ";
cin.getline(str, 80);
int l; //Hold length of string
//Find the length of the string
for(l = 0; str[l] != '\0'; l++);
//Display the string backwards
for(int i = l - 1; i >= 0; i--)
{
cout << str[i];
}
return 0;
}

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!