Question: PDF code: * / #include using namespace std; / * * Displays the reverse of a non blank string s . @ pre s should
PDF code:
#include
using namespace std;
Displays the reverse of a non blank string s
@ pre s should not be blank.
@ post The reverse of the string s is dispalyed.
void displayBackwardsstring;
int main
string s;
cout Enter a string ;
cins;
cout"Reverse of string s ;
displayBackwardss;
return ;
Displays the reverse of a non blank string s
@ pre s should not be blank.
@ post The reverse of the string s is dispalyed.
void displayBackwardsstring s
int length ssize;
iflengthbase case
cout
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
