#include<stdio.h> void s(int,int); void main() { int x,y; scanf("%d%d",&x,&y); s(&x,&y); printf("Value of x and y after swapping is %d and %d ",x,y); getch(); } s(int *p,int *q) { int temp; temp=*p; *p=*q; *q=temp; }
© 2019 CODE WITH SHARAD | Privacy Policy
Comments