Ask Question
4 January, 12:37

What will the following code display? #include using namespace std; int getValue (int); int main () { int x = 2; cout << getValue (x) << endl; return 0; } int getValue (int num) { return num + 5; } a. 5 b. 2 c. 7 d. getValue (x)

+4
Answers (1)
  1. 4 January, 12:42
    0
    7.

    Explanation:

    getValue takes a number as argument and returns that number plus two. 5+2=7
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What will the following code display? #include using namespace std; int getValue (int); int main () { int x = 2; cout ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers