ramesh


{ City } kurnool
< Country > india
* Profession * student
User No # 65555
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 4
Questions / { ramesh }
Questions Answers Category Views Company eMail




Answers / { ramesh }

Question { Infotech, 35765 }

Write a program to interchange two variables without using
the third variable?


Answer

#include
#include
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
c=a*b;
b=a/b;
a=b/a;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}

Is This Answer Correct ?    1 Yes 4 No