I found the following definition on Wikipedia.
Is it the most common definition? How is the definition usually notated?
A function f from X to Y is a subset of the Cartesian product X × Y subject to the following condition: every element of X is the first component of one and only one ordered pair in the subset. In other words, for every x in X there is exactly one element y such that the ordered pair (x, y) is contained in the subset defining the function f. This formal definition is a precise rendition of the idea that to each x is associated an element y of Y, namely the uniquely specified element y with the property just mentioned.
$\sf ZFC$ doesn't define anything. It's just a mathematical theory, whose language includes only one extralogical binary relation symbol denoted by $\in$.
Mathematicians, in particular set theorists, define things in the language of $\sf ZFC$ which are interpreted as functions.
Set theorists see functions as sets of ordered pairs. We say that $f$ is a function if:
Then we write $f\colon X\to Y$ if:
So how do we define ordered pairs? Well, there are several ways, the best known is the definition given by Kuratowski:
$$(x,y) = \biggl\{\{x\},\{x,y\}\biggr\}$$
We can check to see that this definition satisfies all the properties of an ordered pair, and therefore it is a good definition. Now the definition of a function is complete. We have the properties that we want, and we have the implementation of these properties.
However! Note that the definition of an ordered pair, or even a function, is just an abstract definition. There are just some properties that we want a function to satisfy, and any interpretation which adheres to these "axioms" or "definition" is worthy of the name function (or ordered pair).
So whenever we write a proof in set theory, we really write a schema for a proof, where one later on plugs in the definition of an ordered pair, and the definition of a function, and so on and so forth. Occasionally we will require a particular interpretation, but as long that we know that such interpretation exists it's fine.