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

two variables are added answer is stored on not for third
variable how it is possible?

Answer Posted / sujith

I am afraid i understood the question. If the question is
defined like, u need to exchange two variables without using
a temporary variable is,

a += b;
b = a - b;
a = a - b;
Another methos is ,
a ^= b ^= a ^= b;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2186


How can I pad a string to a known length?

1037


Explain the use of function toupper() with and example code?

1136


What are nested functions in c?

1025


Explain what are bus errors, memory faults, and core dumps?

1280


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3971


What are pointers?

1114


When should we use pointers in a c program?

1138


Are bit fields portable?

1159


Tell me what are bitwise shift operators?

1132


using for loop sum 2 number of any 4 digit number in c language

2350


Is array name a pointer?

1035


Difference between macros and inline functions? Can a function be forced as inline?

1277


‎How to define structures? · ‎

1089


Why we not create function inside function.

2196