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

Which fraction is equivalent to 2/2
What was the farming method used by the early river valley civilizations?
Jeremy is 12 4 5 years old. Carl is 1 1 6 years younger than Jeremy and Jane is 1 1 3 years younger than Carl. How old is Jane?
Estimate the difference. 9 1/2 - 1 6/7 8 1/2 8 7 7 1/2
Evaluate the expression for r = 9. 19 + r =
help help help help help help please​
Between 2000 and 2010, the percentage of fatal automobile accidents due to speeding decreased by 34% to 16%. What percentage of fatal automobile accidents were
क. किशोर धुंडिराज की रुचियों को विकसित होने का सुनहरा अवसर कहाँ और कब मिला?​
I WILL GIVE BRAINLIEST.Which of the following statements is FALSE?a.Radical Republicans began raising state and local taxes to rebuild government and public ser
graph the line x=2I'm bad with graphs​