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
Get step-by-step solutions from verified subject matter experts
