197k views
2 votes
Which of the following is a legal call to the displayOutput function assuming myTotal is an integer variable?

1) void displayOutput(myTotal);
2) displayOutput(int myTotal);
3) printf();
4) DisplaysOutput(myTotal);

User Chung Wu
by
8.2k points

1 Answer

4 votes

Final answer:

The correct call to the displayOutput function is displayOutput(int myTotal).

Step-by-step explanation:

The correct call to the displayOutput function assuming myTotal is an integer variable is option 2) displayOutput(int myTotal).

User Regeme
by
7.9k points