abhijeetgund34 / C-language-

0 stars 0 forks source link

Swapping two numbers using reference #1

Open abhijeetgund34 opened 7 years ago

abhijeetgund34 commented 7 years ago

include

include

void swap(int,int); void main() { int a,b; clrscr(); printf("enter two no:"); scanf("%d%d",&a,&b); swap(&a,&b); printf("a=%d b=%d :",a,b); getch(); }

void swap(intx,inty) { int i; i=x; x=y; y=i; }