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) { 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
maincpp 1 include using namespace std 2 3 4 5 6 7 void fint ... View full answer
Get step-by-step solutions from verified subject matter experts
