ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  Programming Languages AllOther
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.

 Question Submitted By :: Chandrasekhar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to swap all the values without using temporary variable. tha values r a = 20, x=60 and p=2.
Answer
# 1
x=x-a;
a=x+a;
x=a-x;

x=x-p;
p=x+p;
x=p-x;
 
Is This Answer Correct ?    2 Yes 0 No
Learning
 

 
 
 
Other Programming Languages AllOther Interview Questions
 
  Question Asked @ Answers
 
What is the difference between windows 98/2000/XP Operating Systems? TCS8
What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?  1
HTML is a subset of  3
What is meant by STACK? Mascot2
Which tag is used to break a line  2
How to link calculator in oops concept? how is it working in oops concept? why dont u using in beginning of program 'z' in abap(sap)?  2
how to invoke the macro in another macro? Accenture1
How to call static method in Java? Epoch2
you have an unlimited supply of $3 and $7 poker chips. What is the largest integer value that you cannot make by combining different numbers of chips?  1
Why multiple inheritance is removed in java? TCS3
WHAT IS NV RAM ?  1
hi friends please tel me how to handle the recovery manager(All i.e PopUp ,Application Crach ,Object state,etc) in QTP IBM1
what is meant by trigger? IBM1
Hi guys... I have one doubt ..Exception is a runtime error then why we have checked exception... Thanks in advance  2
Write a shell program. Enter basic pay of an employee and calculate DA, HRA, Deduction, Gross pay and Net pay as follows: DA = 75 % of BASIC HRA = 10 % of BASIC DEDUCTION = 15 % of BASIC GROSS PAY = BASIC+DA+HRA NET PAY = GROSS PAY-DEDUCTION.  1
Which tag is used to create the frame  1
Is strus threadsafe or not?  1
how many trailing zeroes are there in 100! (100 factorial)?  2
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming  1
I've an application where i need to give access to all the features only to admin and only few features to normal users. Say Menu...i dont want all my menu items to be accessible to all the users only the admin people can see few all the features where as normal users can have access to limited menu items...how can i achieve this. Please note that my menu is not a database driven menu. Tesco1
 
For more Programming Languages AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com