#include<stdio.h>
int main()
{
int a,b;
printf(“enter the value of a &b”);
scanf(“%d %d”,&a,&b);
printf(“value of a=%d & b=%d\n”,a ,b);
a=a+b;
b=a-b;
a=a-b;
printf(“after swaping a=%d &b=%d\n”, a,b);
return 0;
}
#include<stdio.h>
int main()
{
int a,b;
printf(“enter the value of a &b”);
scanf(“%d %d”,&a,&b);
printf(“value of a=%d & b=%d\n”,a ,b);
a=a+b;
b=a-b;
a=a-b;
printf(“after swaping a=%d &b=%d\n”, a,b);
return 0;
}
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.