you can use follwing code:
#include<stdio.h>
#include<conio.h>
void swap(int *a,int *b)
{
int temp;
temp=*a;
*a=*b;
*b=temp;
printf("a=%d b=%d",*a,*b);
Type: Posts; User: sweta rajkotia; Keyword(s):
you can use follwing code:
#include<stdio.h>
#include<conio.h>
void swap(int *a,int *b)
{
int temp;
temp=*a;
*a=*b;
*b=temp;
printf("a=%d b=%d",*a,*b);