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

HELPP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
What is one of the responsibilities of Health care regulatory agencies?
1/2 - 1/12=????????​
Can anyone give me examples of control groups ?
How are casts formed by decaying organisms? Organisms turn into rock over time. Organisms leave carbon residue on a rock. Organisms leave impressions in sedimen
Does (-6)2 have a value less than zero?
the process of extracting Trona in lake Magadi is through​
Which explorers sailed for the Spanish?
Which of the following about the plasma membrane is not true? a. It is made of lipid molecules b. It protects the cell's cytoplasm c. It contains proteins d.
Zenith Consulting Co. has the following accounts in its ledger: Cash; Accounts Receivable; Supplies; Office Equipment; Accounts Payable; Common Stock; Retained