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...

swapping program does not use third variable

Answer Posted / abdul rahman

void main()
{
int a,b;//example a=10,b=12;
a=a~b;//a=22
b=a~b;//b=10;
a=a~b;//a=12
}


NOTE:
~=XOR operator( not able to write xor
operator so iam using this symbol which is not
correct)

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which feature are not hold visual basic of oop?

2147


What is object and example?

1112


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

3172


What are the features of oop?

1091


Can destructor be overloaded?

978


How do you define social class?

1011


What is this pointer in oop?

997


Why is oop better than procedural?

1021


What are the 3 pillars of oop?

1099


Why do while loop is used?

974


Why do we use polymorphism in oops?

982


What is the main feature of oop?

1097


What causes polymorphism?

1067


How do you define a class in oop?

1057


Why do we use class in oops?

914