Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / ramesh mca gprec knl

#include<stdio.h>
#include<conio.h>
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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is union in c?

1057


What is wrong with this declaration?

1041


Explain how do you list a file’s date and time?

986


What is the difference between text and binary modes?

1121


What is an endless loop?

1224


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2340


Is c still used?

995


What is the difference between #include

and #include “header file”?

967


Is malloc memset faster than calloc?

1015


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1170


How is a pointer variable declared?

1022


What is the advantage of an array over individual variables?

1185


What are pragmas and what are they good for?

933


What is methods in c?

1031


What is the purpose of scanf() and printf() functions?

1170