Why are arrays passed automatically by reference, unlike scalar variables?
What will be an ideal response?
It is more efficient to pass arrays in this manner. Since many arrays are large, passing an array by value would consume a great deal of the computer's memory and time because the computer would need to duplicate the array in the receiving function's formal parameter.
Computer Science & Information Technology
You might also like to view...
A comment is added to an individual cell
Indicate whether the statement is true or false
Computer Science & Information Technology
Which of the following promotions of primitive types is not allowed to occur?
a. char to int. b. double to float. c. int to double. d. short to long.
Computer Science & Information Technology