And unlike the sad little C/C++ solutions people are tossing around, this works for *any* type, not just ints & chars...
You are an idiot. Don't you realize you can swap the memory addresses of automatic variables?
Sounds like you just have a personal problem with computers, because swapping the memory addresses can swap ANY data type. I bet that's how perl and other languages (OCaml) probably do it at the implementation level even.
Don't be an idiot and say other people's solutions are sad without thinking first, moron.
You are an idiot. Don't you realize you can swap the memory addresses of automatic variables?
Sounds like you just have a personal problem with computers, because swapping the memory addresses can swap ANY data type. I bet that's how perl and other languages (OCaml) probably do it at the implementation level even.
Don't be an idiot and say other people's solutions are sad without thinking first, moron.