Question: What will be displayed by the following code? #include using namespace std; void f(int &p1, int p2) { p1 + +; p2 + +;

What will be displayed by the following code? #include using namespace std; void f(int &p1, int p2) { pl + +;

What will be displayed by the following code? #include using namespace std; void f(int &p1, int p2) { p1 + +; p2 + +; } int main() { int x1 = 1; int x2 = 1; f(x1, x2); cout < < "x1 is" < < x1 < < "x2 is" < < x2; return 0;

Step by Step Solution

3.37 Rating (141 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

maincpp 1 include using namespace std 2 3 4 5 6 7 void fint ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!