Answer DB18


void makeEven( int size, int arr[] )
{
  int j;
  for ( j=0; j < size; j++ )
  {
    if ( arr[j]%2 == 1 )
      arr[j] += 1;
    else if ( arr[j]%2 == -1 )
      arr[j] -= 1;
  }
}


Back to Puzzle Home