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

How to know so many have phosphorus atoms.
The last item on the statement of cash flows prior to the schedule of noncash investing and financing activities reports a.the net increase or decrease in cash
a wax light that is used as a ceremonial symbol of many holidays
Which is the graph of y-3 = - 2/3 (x + 6)?
2x + 3 = 5 x = plz answer thank you
________ describes the characteristic of publicly committing to the highest level of professional standards and then sticking to that commitment.
En el cuento "¿No oyes ladrar los perros? de Juan Rulfo ¿A dónde se dirigen? ¿Para qué van allá? Question 6 options: Tonaya/ a un carnaval Tonaca/ Para
What is -187 as a percent
What is the value of the function at x = 3? Enter your answer in the box.
Which sentence below best supports the idea that Christmas was considered an English holiday by early Americans? A It wasn't until the 19th century that Americ