I just made a Swap routine in C# like this:
static void Swap(ref int x, ref int y) { int temp = x; x = y; y = temp; }
It does t
Actually, I'd compare them to C++ references rather than pointers. Pointers, in C++ and C, are a more general concept, and references will do what you want.
All of these are undoubtedly pointers under the covers, of course.