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

Can someone please tell me what part of the fraction is shaded ?
Julian entered the U.S. in 2002 and was arrested for human trafficking in 2004. He served 10 years in prison, and returned to his native country in 2014. He at
Which part of a financial aid letter includes the measure of your family's ability to pay for school, based on the financial information you provided on your FA
Happy new year. Wish u guys all the best in 2022.​
What is 10+5+5÷2 plzz solve for the solution
pls answer quickly and lots of details
Mr. Rosart selects two students from his class to present their book reports. He places the names of each student in a box and randomly picks one at a time. The
In the given figure, find the values of x and y.​
kamil invests 9000 for 4 years his investment pays compound interest of x% per anumn
(-2abc)^2 simplify please