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 values between two variables without using a
third variable?

Answer Posted / srinivas

int a=2,b=3;
a=a+b-(b=a); /*now a=3, b=2*/

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

sample and simple coding where we get?

2295


Write a program to create a process in UNIX

2561


which worker is involved in all the phases of SDLC?

2156


Explain with examples any 2 features of OOPS.

1130


hi viewers, tell me,what is scripting and programming, define and difference...pls

1983


WHat is execution in manual testing and when will we start execution and what language we use in execution

1959


in a VB application, where the data will be stored after manipulation? what is the syntax for that?

2281


details description on this mantis? who is founder of this mantis?

2137


i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared

1661


How to connect to ms word wit VB ojective is to prepare s/w to generate question paper , selects questions randomly from the ms access , database

2474


Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com

2181


what do u mean by tagging

2074


Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming

11970


in IBM PC -AT.WAT AT REFERS TO?

1898


Q1.Write a C program which asks the user for a number between 1 to 9 and shows the  number. If the user inputs a number out of the specified range, the program should  show an error and prompt the user for a valid input.

2728