Pointwise Multiplication on Rational-Valued Functions is Associative

Theorem
Let $S$ be a non-empty set. Let $f, g, h: S \to \Q$ be rational-valued functions.

Let $f \times g: S \to \Q$ denote the pointwise product of $f$ and $g$.

Then:
 * $\left({f \times g}\right) \times h = f \times \left({g \times h}\right)$

That is, pointwise multiplication on rational-valued functions is associative.