terryonsavage2538 terryonsavage2538
  • 03-07-2019
  • Computers and Technology
contestada

When a method returns an array reference, you include ____ with the return type in the method header.

a.
( )

b.
[ ]

c.
< >

d.
{ }

Respuesta :

Branta Branta
  • 15-07-2019

Answer:

b. []

Explanation:

Arrays are represented using [] . When a method returns an array reference, the method header contains an entry of the type <data-type>[].

For example, a method test which returns a reference to integer array and takes no parameters is of the form:

int[] test();

Similarly a method list_chars which takes a String as an argument and returns an array of chars has the form:

char[] list_chars(String s);

Answer Link

Otras preguntas

Give the equation of a line that is perpendicular to the line y= -4/5x+8
can anyone please help 35 points if you can
The Agile Manifesto "Customer Collaboration over contract negotiation" means that: A] Agile encourages Team to focus on negotiating contracts. B] Through contra
Use the long division method to find the result when 3x3 – 2x2 + 2x + 1 is divided by 3x + 1.
HE HE HEEEEEEEEEEEEEEEEEEEEEEE
Which integer is the smallest? A. 34 B.-4 C.-84 D. 24
9) 80 is 20% of what number?
Question 19 of 25 Which sentence suggests the greatest amount of psychic distance? A. "Please let this be the one," he thought, watching the oncoming train. B.
Solve for X. The solution is X _ _
We often think of technological change as good for society. Give an example of an instance when technology has created or increased a public health issue and ev