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

How do I solve this. Log 5x = log (2x+9)
C=11.304 m, r. C is circumference and R is radius
Help me plz! Which organism is the herbivore in this food web? A. leopard seal B. orca C. zooplankton D. cod
Species is a(an)_________ specific level of classification than domain.
What did james hutton propose in 1795?
The estimated number of Jews killed in Europe during the Holocaust is __________.
Need help! Why might Brazil have so strongly stressed the growing of coffee in the early 20th century? Brazilian citizens drank more coffee than any other count
What did Juan Peron and Salvador Allende have most in common? A. They ruled as military dictators B. They were the first elected leaders in new nations C. They
Who makes all decisions in a communist country
What is the value of x? Round your answer to the nearest tenth. x2 = 112