Swapping of two number using pointer in C October 24, 2017 Abhay Singh Raghuvanshi Leave a comment #include<stdio.h> #include<conio.h> void main () { int a=5,b=7,t; int *p1=&a,*p2=&b; clrscr(); printf(“%d,%d\n”,a,b); t=*p1; *p1=*p2; *p2=t; printf(“%d,%d”,a,b); getch(); } After Running Program 🙂 Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to print (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email this to a friend (Opens in new window)Like this:Like Loading... Related