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

HELPPPPPPPPPP PLEASEEEEEEEE!!!!!!
The ethical principle of beneficence matches which of these ethical considerations
what is the square of 123?​
Quarry Industries issued $250,000 in bonds last year to fund an expansion. Each of the bonds has a par value of $1,000 and a coupon rate of 3% paid semi-annuall
WEB IN QUBASIC TO FIND PROGRAM​
An article was sold for rupees 920 with a loss of 8%. What was its cost price? provide the formula also.
A 5 kg box on a horizontal table is pushed by a horizontal force of 15 N as shown on the right. If the coefficient of friction is 0.4, will the box move?
A compound x on treating with dilute HCl release a gas which turns milkey metal x is used in glavinazion of iron articles explain the extraction of metal x from
When the price of 100euro first increases by 20% and then decreases by 20% the last price is
How to write a good letter to editor