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

Describe a time when you felt antagonized or were responsible for antagonizing someone yourself.
write the symbols for the following isotopes: Its atoms contain 50 electrons and 70 neutrons
PLEASE HELP I GIVE THANKS
Jackie buys a basket for $6, 2 pounds of apples for $3.50 per pound, and 2 pounds of oranges for $3.50 each per pound. The tax for the whole purchase is $1.
Which American suffrage leader was arrested in 1872 when she tried to cast a vote in the U.S. presidential election? A. Susan B. Anthony B. Ida B. Wells C. Carr
how does the CONSTANT affect a line graph?
PLEASE HELP I GIVE THANKS
Which feature of the Roman Republic's government is also a feature of the United States' government? a Senate with 300 members appointed by the head of governme
examples of three different types of computer storage
What is 0.1 repeating as a fraction?