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

ted is asked to multiply 10^2*18.72.how should he move the decimal point to get the correct product?
English essay Is my text goood? grammmar spelling too ???? The Earth Needs Water! The Earth has many life-threatening problems caused by humans. One of these
Water molecules can pass into a cell, while larger molecules cannot. Which feature of a cell allows this to be true? A; semipermeable membrane B; photosynthetic
Which sentence demonstrates correct subject-verb agreement? a. Dave Wiens, a Denver native and champion mountain biker, helped design the Olympic mountain bike
what is g divided by 2.1=-6.8?
22 is 44% of what number?
What happens to the graph of a positive slope line as you move from left to right?
For which of the following did President Theodore Roosevelt win the Nobel Prize in 1906? a. for building the Panama Canal b. for the Roosevelt Corollary c. for
Is this Linear y=4000-70x if it is how do you know
What does mournful influence mean?