Write a prog. to interchange contents of two variables.
C Programming -->
/* PROG. TO INTERCHANGE THE CONTENTS OF TWO VARIABLES */
#include<stdio .h>
#include<conio.h>
main()
{
int a,b,t;
clrscr();
printf("enter two values");
scanf("%d%d" ,&a,&b);
t=a;
a=b;
b=t;
printf("interchanged values are a=%d b=%d",a,b);
getch();
}