Question: Define function StretchPoint ( ) with two pass - by - pointer integer parameters, xCoords and yCoords, representing the x and y coordinates of a

Define function StretchPoint() with two pass-by-pointer integer parameters, xCoords and yCoords, representing the x and y coordinates of a point. The return type of StretchPoint() is void. StretchPoint() should perform the following tasks:
Update the x coordinate's value with the x coordinate's current value multiplied by 4.
Update the y coordinate's value with the y coordinate's current value multiplied by 3.

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!