What does the following program output? {Hint: new int(expression) will initialize the value to the expression before returning) #include using namespace std; void ModifyVariables (int a, int &b, int...



What does the following program output?
{
Hint
: new int(expression) will initialize the value to the expression before returning)


#include <iostream><br>using namespace std;<br>void ModifyVariables (int a, int &b, int *a)<br>{<br>a = b;<br>b+=a;<br>c = new int(a);<br>cout << a <«

Extracted text: #include using namespace std; void ModifyVariables (int a, int &b, int *a) { a = b; b+=a; c = new int(a); cout < a=""><« "="" "="">< b="">< "="" "="">< *o="">< endl;="" (*c)="" ++;="" }="" void="" printvalues="" (="" int="" a,="" int="" b="" )="" {="" int="" *c;="" c="new" int(2*a);="" cout="">< *c=""><« endl;="" modifyvariables="" (a,="" b,="" c);="" cout="">< a="">< "="" "="">< b="">< "="" "="">< *o="">

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here