Source code:
#include<stdio.h>
#include<conio.h>
void swap(int&n1,int &n2)
int temp=0;
temp=n1;
n1=n2;
n2=temp;
printf("\nm1=%d",n1,"m2=%d",n2);
void main()
int m1,m2;
printf("\nEnter two integers.......
scanf("%d%d",&m1,&m2);
printf("\n Before Swapping.........");
printf("\nm1=%d",n1,"m2=%d",n2);
swap(m1,m2);
printf("\n After Swapping.........");
printf("\nm1=%d",n1,"m2=%d",n2);
getch();
}
What is output??
Answers
Answered by
0
Explanation:
what is that r u understanding
Similar questions