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

The invention of the _______ has allowed scientists to see the inside of cells and identify their internal structures.
what time what equal 27
What is the slope of line PT? PLZ plz HELP
i do not understand this im lost
the king is not to be trusted without being looked after , or in other words , that a thrist for absolute power is the natural disease of monarchy . what writer
The legislative branch is
What is the sacrifice involved in making one decision over another ?
Why did the British occupy Egypt in 1882
URGENT!!!!!!!!!!!!!!!!!!!!!!Choose the adjective that best describes the italicized word. The cat scrambled up the tree black frightened friendly
sara wants to invest her money into a savings account that earns 2.25% interest. how much interese will sars earn at the end of 1 year as long as on other money