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

Priya wants to know the name of Sophia’s baby. Based on your answer to part a, what is its name?
What's a good name for a boy? How do you say YOU ARE A BOY IN FRENCH?
What is the formula for circumference of a circle given the diameter.
An oak tree casts a shadow that is 16 yards long. A wooden column near the oak tree casts a shadow that is 8 yards long. If the oak tree is 12 yards tall, how t
How many data values are closer than one mean absolute devitation away from the mean? 34,37,48,32,25,34,35,23,33,30. HELP ME PLEASE
The image shows a rain forest ecosystem. The energy from plants,or producers ,acts qs rhe starting point of energy in the ecosystem. This energy is transferred
25 POINTS. If 16 ounces of chlorine are needed in a 12,500-gallon pool, how many ounces of chlorine are needed in a 5,000-gallon pool? 7.6 ounces 3.2 ounces
write any two symptoms of hypoglaecemai.​
please answer correctly. Thank you​
what is a good genre to write a short story of