19 October 2011

Using Pointer to swap the integer using C#

Using Pointer to swap the integer using C#


/* Exchange the values by pointers. */
void swap(int *i, int *j)
{
  int temp;

  temp = *i;
  *i = *j;
  *j = temp;
}

No comments:

Post a Comment

Comments Welcome