Multiple Choice
Given an array declaration of int anArray[1000], which of the following would be a valid heading for a method that sends the array in as a parameter?
A) void DisplayContents(int anArray)
B) void DisplayContents(int anArray[])
C) void DisplayContents(int [ ] anArray)
D) void DisplayContents(anArray[1000])
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q50: int [ ] anArray = new int
Q51: Which of the following could be a
Q52: For an array that is dimensioned with
Q53: To access an array element, you must
Q54: double [ ] price = new double
Q56: When you pass a single array element
Q57: The Clear( ) method of the Array
Q58: Which of the following is a valid
Q59: int [ ] anArray = new int[24];
Q60: Arrays can be sent to methods as