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?



June 06, 2006 01:01:35 #1
 rakesh   Member Since: Visitor    Total Comments: N/A 

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

yes , we can do it

 void swap(int *a,int *b){a=a+b; b=a-b;a=a-b;}

just call this function as

swap(a,b);

swapping has done

bye..

     

 

Back To Question