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 did the funding for england's early colonies differ from those of spain?
solve th inequality y/-6 > 10
According to the article, the site of the Temple Mount in Jerusalem is important to which faiths? Check all that apply. Hinduism Judaism Islam Buddhism Shintoi
Jason drove 4/5 of the way to his destination if he drove 480 miles what is his total distance of his trip
The european slave trade reoriented african political and economic power structures by _________.
If someone could help me!
ac=5x+2,bc=x+3,ab=3x+4
Which shows 6 · 6 · 6 written as a single base with an exponent? A. 36 B. 63 C. 66
What do you make of karl marx’s contributions to sociology? what perceptions of marx have you been exposed to in your society, and how do those perceptions infl
How many valence electrons are found in one atom of nitrogen (N)?