Question: What does the following code produce? string words, words2; words=Mary Ellen; words2=MaryEllen; if (words > words2) { cout < < Mary Ellen is greater because

What does the following code produce? string words, words2; words="Mary Ellen"; words2="MaryEllen"; if (words > words2) { cout << "Mary Ellen is greater because of space. "; } if (words2 > words) { cout << "MaryEllen is greater because value of E is greater than the ASCII value of space. "; }

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!