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 of two numbers without using third variable using
AND and OR operators

Answer Posted / vignesh1988i

however we can implement using EXoR , where it is made of
AND and OR gate too....

x=90;
y=51;
x^=y^=x;
the value of x & y will be swapped.

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

2395


How many levels of indirection in pointers can you have in a single declaration?

1025


What is the function of volatile in c language?

1070


Difference between Function to pointer and pointer to function

1019


Describe the steps to insert data into a singly linked list.

1020


How can I delete a file?

1016


Why isnt there a numbered, multi-level break statement to break out

994


How can I convert a number to a string?

1095


What do you mean by invalid pointer arithmetic?

1002


What is string function in c?

946


What is main () in c language?

1078


What do you mean by a local block?

1027


How many levels of pointers have?

988


How do I get an accurate error status return from system on ms-dos?

1075


What is #line in c?

960