#include <stdio.h>

void Swap(int firstVal, int secondVal);

main()
{
  int valueA = 3;
  int valueB = 4;
  
  printf("Before Swap: valueA = %d and valueB = %d\n", valueA, valueB);
  Swap(valueA, valueB);
  printf("After Swap : valueA = %d and valueB = %d\n", valueA, valueB);
}

void Swap(int firstVal, int secondVal)
{
  int tempVal;              /* Needed to hold firstVal when swapping */
  
  tempVal = firstVal;
  firstVal = secondVal;
  secondVal = tempVal;
}