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.