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


how to swap 4 number without using temporary number?

Answers were Sorted based on User's Feedback



how to swap 4 number without using temporary number?..

Answer / brinda balakrishnan

a=a+b+c+d;
b=a-(b+c+d);
c=a-(b+c+d);
d=a-(b+c+d);
a=a-(b+c+d);

Is This Answer Correct ?    25 Yes 0 No

how to swap 4 number without using temporary number?..

Answer / sandeep

a=a^b;
b=a^b;
a=a^b;

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Interview Questions

Explain how can I pad a string to a known length?

0 Answers  


What is a stream water?

0 Answers  


Explain what is the difference between far and near ?

0 Answers  


What is the heap in c?

0 Answers  


Why does the call char scanf work?

0 Answers  


Can an array be an Ivalue?

0 Answers   EXL,


Explain how do you list files in a directory?

0 Answers  


any "C" function by default returns an a) int value b) float value c) char value d) a & b

0 Answers  


What is ambagious result in C? explain with an example.

0 Answers   Infosys,


what is ram?

3 Answers   TCS,


What's the difference between a linked list and an array?

14 Answers  


What is the difference between typeof(foo) and myFoo.GetType()?

2 Answers   Synergy,


Categories