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

Could you tell me what Are Spores?
What Is Solar Radiation?
If x= (a^2)/b, which situation would always double the value of x? (1) Doubling the value of a(2) Halving the value of a(3) Doubling the value of b(4) Halving t
what are vertically opposite angles
how do you convert mol dm-3 to gdm-3 and vice versa
Ho does differentiation change an embryo as it develops
Your oven has a power rating of 5000 watt... Your oven has a power rating of 5000 watts. a. How many kilowatts is this? b. If the oven is used for 2 hours to ba
Solve for y.8^3-3y=256^4y
The resultant resistance of two resistance wires in series combination is 108 ohm and in parallel combination is 24 ohm. find the value of individual resistance
Explain 2 different ways to find the greatest common factor of 15x2y3  and 24x4y2 .