70.8k views
1 vote
What is the output of the following program? #include using namespace std; int computeValue(int); int main() { int x = 2; cout << computeValue(x) << endl; return 0; } int computeValue(int num) { return num + 5; }

1 Answer

4 votes

I hope this clears things out

What is the output of the following program? #include using namespace std; int computeValue-example-1
What is the output of the following program? #include using namespace std; int computeValue-example-2
What is the output of the following program? #include using namespace std; int computeValue-example-3
User Grebenyuksv
by
8.4k points