GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Integra

 Print  |  
Question:  can we use the swapping function in one statement?



July 07, 2006 14:42:17 #2
 ratnesh   Member Since: July 2006    Total Comments: 1 

RE: can we use the swapping function in one statement?...
 

yes we can do it..

just call following function

swap(int a, int b){a=a^b;b=a^b;a=a^b;}

     

 

Back To Question