How to swap values between two variables without using a
third variable?
Answer Posted / pushpendra
int x=10,y=20;
x=x+y (10+20=30)
y=x-y (30-20=10)
x=x-y (30-10=20)
x=20,y=10
x and y vales are swaped.
| Is This Answer Correct ? | 13 Yes | 9 No |
Post New Answer View All Answers
what is the use MDM(Master Data Management)and meaning
Plz sent me in .net 2.0 interview Question & answers?
what do u mean by tagging
what is meant by life cycle of a business
can we retrieve only integer/String type columns from a table,if yes how?
Write a pseudo code to evaluate a number to any base given (2...16) based on the input. Number greater than 9 should be given as A-F for 10-15.
differences between qtp10.0 and 11.0 ?
I want to insert date in the form of yyyy-mm-dd... if any changes happen while inserting date format want to show error meg...any one can solve this..??
what is class module in vb6? what it's use? with example..
Tag for turning an image into a hyperlink is
what is session state?
Code for display the images from drive using vb 6.0?
can we use commit,rollback in triggers and how?
Difference between delegates and Events?
the systematic access of small computers in a distributed data processing system is referred as?