Question: C++ Problem 1) Consider the following function implementation. Assume there are no compiler errors: void scores::displayScores() { int total = 0; for (int i =
C++ Problem
1) Consider the following function implementation. Assume there are no compiler errors:
void scores::displayScores() { int total = 0; for (int i = 0; i < stats.size(); i++) { std::cout << stats[i] << std::endl; total = total + stats[i]; } }
Which of the following should you assume would be accessible to other functions of the scoresclass?
| a) | All variables in this function are accessible to other functions of the scores class |
| b) | total |
| c) | i |
| d) | stats |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
