Which of the following can be used to call the getNewPrice function described in Review Question 11?

Question:

Which of the following can be used to call the getNewPrice function described in Review Question 11? 

a. getNewPrice(double oldPrice, double newPrice); 

b. getNewPrice(&oldPrice, newPrice); 

c. getNewPrice(oldPrice, &newPrice); 

d. getNewPrice(oldPrice, newPrice);


Data From Review Question 11

A program contains a void function named getNewPrice. The function receives two double variables named oldPrice and newPrice. The function multiplies the contents of the oldPrice variable by 1.1 and then stores the result in the newPrice variable. Which of the following is the appropriate function prototype for this function?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: