C language example exchange two variablesrefe rto:lautturi.com
/*
swap two variables in C language
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int x = 12, y = 34, temp;
temp = x;
x = y;
y = temp;
printf("X = %d and Y = %d", x, y);
return 0;
}