Consider the following code: / / Merge mailing list m2 into m1 void merge (MailingList m1, MailingList m2) { for (int i = 0; i < m2. numEntries (); + +i) m1. add (m2. getEntry (i)); } The programmers who first encountered this code fragment weren't sure if it was in C+ + or Java. In fact, with the addition of some appropriate declarations, it would probably compile correctly in either language. Which language is it? Explain your answer.
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Consider the following code: / / Merge mailing list m2 into m1 void merge (MailingList m1, MailingList m2) { for (int i = 0; i < m2. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Consider the following code: / / Merge mailing list m2 into m1 void merge (MailingList m1, MailingList m2) { for (int i = 0; i < m2. numEntries (); + +i) m1. add (m2.