Swapping
      This is a simple program explaining the swap process.In swapping the value of two variables get exchanged.
/*
	http://www.ProbCOMP.com
	
	This is a simple program explaining the swap process.In swapping the value of two variables 
	get exchanged.
*/

#include<stdio.h>

void main()
{
	int a,b,temp;
	
	
	printf("\nenter a= ");
	scanf("%d",&a);
	printf("\nenter b= ");
	scanf("%d",&b);
	temp=a;
	a=b;
	b=a;
	printf("The swapped value is a= %d and b= %d",a,b);
}									

Download Program
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More