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

what is the speed, if distance is 900 miles and time 300 minutes​
In this unit, you learned about Athenian democracy and government in ancient Greece. What were some of the main characteristics of Athenian democracy? How is At
The Great Debate On September 26, 1960, seventy-four million viewers tuned in to watch a historic duel: the first televised presidential debate. The candidates
I NEED HELP WITH THESE PLEASE 2.) What about the next shape in this pattern? Write a conjecture that describes the pattern. The red square is the next shape. 3
I need help (reading plus)
Answer this question ASAP . I will give you all my points. I will give brainly .
can u help me please
HELP PLSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
1. What does the dermal tissue system do?​
...... is the probability that certain commands will be obeyed by a specific people​