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

Two lines in intersecting planes are_____ skew A)never B)sometimes C)always
2 sin−1(x) + cos−1(x) = π The hint is to take the cosine of each side
is a charge of 5.8×10^-18 is possible
Excerpts from the First Inaugural Address of Andrew Jackson: "... In administering the laws of Congress I shall keep steadily in view the limitations as well as
Asuna would like to strengthen her bones. Which of the following activities is best for her to try? Please help asap its for a course thx! A) Trunk lift B) Push
Once politically powerful in the us, what did the woman's christian temperance union primarily oppose?
The two steps for avoiding hazards that are always taken before the need for ppe is considered are:
Evaluate the integral. (See picture)
is a charge of 5.8×10^-18 is possible
Which revision would make this paragraph suitable for a presentation