Problem

A void function named calcEndingInventory is passed four int variables named beginInvent...

A void function named calcEndingInventory is passed four int variables named beginInventory, sales, purchases, and endingInventory. The function’s task is to calculate the ending inventory, using the beginning inventory, sales, and purchase amounts passed to the function. The function should store the result in the endingInventory variable. Which of the following function headers is correct?

a. void calcEndingInventory(int b, int s, int p, int &e)

b. void calcEndingInventory(int b, int s, int p, int e)

c. void calcEndingInventory(int &b, int &s, int &p, int e)

d. void calcEndingInventory(&int b, &int s, &int p, &int e)

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search