1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lemur [1.5K]
4 years ago
12

Consider the following code: // Merge mailing list m2 into m1 void merge (MailingList m1, MailingList m2) { for (int i = 0; i &l

t; 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.
Computers and Technology
1 answer:
Inessa [10]4 years ago
3 0

Answer:

That is a Java language

Explanation:

This is simply Because C++ language does not support the calling of the methods without parameters and with the .(dot) operator.

It can also be clearly noted that This is the functionality of Java, for example, to sort we call Array.Sort().

So the parameter here is passed by placing the variable at front with the . (dot).

You might be interested in
1. (A+B)(B'+C)(C+A)<br> 2. A'B'C'<br> 3. (X+Y)(X'+Z)(Y+Z)<br> 4. A'B'C'+A'BC'+A'BC+ABC'
Diano4ka-milaya [45]

you need to put your question

5 0
3 years ago
What is the main difference between a shape and an icon?
otez555 [7]

Answer:

a.

Explanation:

you can size and position a shape but not an icon

7 0
2 years ago
If you are using characters other than whitespaces as delimiters, you will probably want to trim the string before tokenizing; o
Bess [88]
Answer: true


Expiation: because it is important and you must trim the string before tokenizing or you know otherwise
6 0
3 years ago
Read 2 more answers
A standard portrait picture often includes which of the following?
tatiyna
B) head & shoulders

Hope this helped!
6 0
3 years ago
Read 2 more answers
You interact with a program through its ____, which controls how you enter data and instructions and how information is displaye
Aleks [24]
You interact with a program through its interface.

commonly refereed to as "user interface" graphical interfaces such as a web browser (i.e. inter explorer) are known as "gui's", graphic user interfaces 
5 0
3 years ago
Other questions:
  • CodeHS Python Rainforest Exercise 5.4.7: Categories
    12·1 answer
  • A Molex Connector that connects into a DVD player is easily identifiable by its
    12·2 answers
  • What is wrong with the following code? How should it be fixed?
    12·1 answer
  • 2(x-5)-3(3-x)=1/2(x-2)
    9·1 answer
  • What is a record? What is a field? How are they represented in Access?
    8·1 answer
  • What types of issues can you most likely resolve by knowing how to access and use the control panel choose all that apply?
    10·1 answer
  • True or False
    14·2 answers
  • Many contemporary languages allow two kinds of comments: one in which delimiters are used on both ends (multiple-line comments),
    7·1 answer
  • When I’m design view, Henrietta deleted a previous criterion, added a new column, and filtered patients’ age. Which best describ
    15·1 answer
  • The direction of a ratchet is reversed by _______________________.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!