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

What is string in c language?

1072


What is difference between array and pointer in c?

1025


Does sprintf put null character?

982


How many identifiers are there in c?

961


What is use of bit field?

1235


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

1037


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1007


Why main is used in c?

1009


What is the difference between malloc() and calloc()?

1687


How can I delete a file?

1014


How to set file pointer to beginning c?

1143


Differentiate between Macro and ordinary definition.

1270


Explain what is the purpose of "extern" keyword in a function declaration?

1025


Explain how do you convert strings to numbers in c?

1020


What does int main () mean?

955