Question: What integer value will this program display? #include using namespace std; int P1(int a) { return a + 2; } int P2(int b) { return
What integer value will this program display?
#include
using namespace std;
int P1(int a) { return a + 2; }
int P2(int b) { return P1(b+1) - 1;}
int main()
{
int result = P1(3) + P2(P1(0));
cout << result << endl;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
