Buy Questpond's video subscriptions on
huge discount
.
Online: 663
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
Others
>
Loading ...
How to swap value without using Temporary Variable ?
Posted by
Ajay.Kalol
on 5/8/2012 | Category:
Others Interview questions
| Views: 3967 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
X = 10 Y = 2
X = X + Y; (10 + 2 = 12)
Y = X - Y; (12 - 2 = 10)
X = X - Y; (12 - 10 = 2 )
After this X = 2 AND Y = 10
Asked In:
My Interviews |
Alert Moderator
Bookmark It
< Previous :
Can we use both WCF Services and WCF Data Services ...
Next > :
How to set Page Title using jQuery ?
Comments or Responses
Login to post response
More Interview Questions by Ajay.Kalol
I have a VIEWSTATE["Test"] in my Page, I am Refreshing Page ...
Latest Interview Questions
How to set Page Title using jQuery ?
What is the difference between jquery.size() and jquery.length ?
What does .size() method of jquery return ?
What are the two different ways by which you can make an object serial ...
What are the header (<head>) section changes in HTML5 ?
When calculating Code Metrics, what is Class Coupling ?
When calculating Code Metrics, what is Depth of Inheritance ?
When calculating Code Metrics, what is Cyclomatic Complexity ?
More ...