An alternative to the pass by value function call in which the called function receives a copy of a structure is a(n) ____ function.
A. pointer reference
B. pass by reference
C. global reference
D. array reference
Answer: B
You might also like to view...
Answer the following statements true (T) or false (F)
1. Writing comments should be avoided, especially for large and complex programs. 2. The indentation of statements inside methods, classes, and namespaces is a convention that virtually all programmers follow. 3. The standard Windows close button is the only way to close a running application in Visual Studio. 4. If you double-click an error message in the Error List window, the code editor will highlight and display the line of code that caused the error.
Given the code below
``` var rectangleA = { x: 200, y: 10, width: 40, height: 20, moveDown: function () { this.y += 5; } }; ``` (i) write a statement to change the x value of rectangleA to 150. (ii) write a statement to invoke the method moveDown() on rectangleA.