a. It should be by reference if we can allow the subprogram change the value of Ain the main program.b. Alternatively, we can pass A by value and let the function cube return the cubeof A. In this case, the original value of A remains untouched in the main program.