The document shows the values of two variables, a and b, both before and after attempting to swap their values using a function. In the first example, the swap fails as the values remain the same at 100 and 200. In the second example, the swap succeeds as the values are now reversed at 200 and 100. The document notes that the swap function uses pointers to the variables' addresses to directly modify the original variable values.