Question: Consider the following function used in a C + + program: void processinputlint& a , int& b ) [ a * = 2 b *

Consider the following function used in a C++ program: void processinputlint& a, int& b)[a*=2
b*=3;What is the primary purpose of this function based on its structure and use of reference parameters?To modify the values of a and b in the calling environment.To create a backup of the original values of a and b. To return the product of a and b. To callulate and display the new values of a and b.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!