View Single Post
Old 05-25-2004, 02:43 PM   #5 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
Quote:
i just want to verify ... that line should be ..
right.

Code:
void swap(int &a1, int &a2)
this doesn't work in c. you didn't specify whether you wanted c or c++. anyway, this is less flexible (since you actually can't use it for type "int *" variables, only type "int").

Quote:
couldn't you use the assembly xchg instruction for that?
no.
joe_bruin is offline   Reply With Quote