Explain What is the given code is all about. Remove the mistake and elaborate.
#includevoid fun(int *x,int *y){int t;t=*x;*x=*y;*y=t;}int main(){int num1,num2;cout<"enter value="" of="" num1="" :="">"enter>cin>>num1;cout<"enter value="" of="" num2="" :="">"enter>cin>>num2;cout<"before swapping:="" num1="" is="" :="" ,="" num2="" is="" :="">"before><><>fun(num1,num2);cout<"after swapping:="" num1="" is:="" %d="" num2="" is="" :="">"after><><>return 0;}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here