Explain What is the given code is all about. Remove the mistake and elaborate. #include void fun(int *x,int *y) { int t; t=*x; *x=*y; *y=t; } int main() { int num1,num2; cout>num1; cout>num2; cout



Explain What is the given code is all about. Remove the mistake and elaborate.


#include
void fun(int *x,int *y)
{
int t;
t=*x;
*x=*y;
*y=t;
}
int main()
{
int num1,num2;
cout<"enter value="" of="" num1="" :="">
cin>>num1;
cout<"enter value="" of="" num2="" :="">
cin>>num2;
cout<"before swapping:="" num1="" is="" :="" ,="" num2="" is="" :=""><><>
fun(num1,num2);
cout<"after swapping:="" num1="" is:="" %d="" num2="" is="" :=""><><>
return 0;
}



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here