title: Is there a built-in way to swap two variables in C?
body: <p>I know how to swap two variables in C++, ie you use <code>std::swap(a,b)</code>.</p>
  <p>Does the C standard library have a similar function to C++'s <code>std::swap()</code>, or do I have to define it myself?</p>