What is the output of the program? #include using namespace std; void trick (int *temp1, int *temp2) { int *temp=templ; templ=temp2; temp2=temp; } int main () { int a=100; int b=200; int c=300; trick...


Only answer, no need of explanation


What is the output of the program?<br>#include <iostream><br>using namespace std;<br>void trick (int *temp1, int *temp2)<br>{<br>int *temp=templ;<br>templ=temp2;<br>temp2=temp;<br>}<br>int main () {<br>int a=100;<br>int b=200;<br>int c=300;<br>trick (&a, &b);<br>trick (&a,&c);<br>cout<<b;<br>}<br>a. 100<br>b. 300<br>c. Garbage Value<br>d. 200<br>

Extracted text: What is the output of the program? #include using namespace std; void trick (int *temp1, int *temp2) { int *temp=templ; templ=temp2; temp2=temp; } int main () { int a=100; int b=200; int c=300; trick (&a, &b); trick (&a,&c); cout
Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here