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

A contractor is building a fenced-in area at a daycare. The area will be rectangular with the length of its base equal to half the length of the height. The tot
Which equation could represent p? Please please help
Write a number story to fit this number sentence. 20- (3x6) =2​
Which role involves designing and creating advertisements for marketing purposes?
why might the sun have made ancient people apprehensive​
7 + x - 15= -2 2/3 what is x
Please help I’m not sure how to do this and I’m struggling
This is the first of a planned ________ from a master of science fiction. Which option best completes the sentence? Characterization Prologue Preview Triol
the theory that the threat of nuclear war is enough to prevent an attack is called​
complete the table round answers to the. nearest cent​