A variable has two important properties: 1) where it is stored in memory, which is its lvalue, and 2) the value that is actually stored there, its rvalue. In the following code fragment:
int x= 10;
int y;
y = x;
The compiler assigns memory addresses (i.e., lvalues) to variables x and y where they will "live" in memory while in scope. For variable x, it also assigns the value 10 (.e., x's rvalue) and places that (binary) representation at x's lvalue. The last statement assigns x into y. Note: most assignments like this are rvalue-to-rvalue data movements.
As Paul pointed out, sticking the address-of operator (&) in front of the variable in the function call tells the compiler: "Don't send pinA's rvalue to the function; send its lvalue instead." Now, because your function now knows where pinA lives in memory, it can change its value via the process called indirection.
Inside your function, you won't use a normal rvalue-to-rvalue assignment. For example, if you want to change pinA from 10 to 20, you would have something like:
// some code, perhaps in loop()
pinA = 10;
state = false;
pinCheck(&pinA, &state); // Call your function, but send lvalues, not rvalues
// more code in loop();
} //end of loop()
void pinCheck(byte &pin, boolean &st) {
*pin = 20;
*st = true;
}
In your function, because of the asterisk in front of pin and st, the compiler knows to use the process of indirection during the assignment rather than an rvalue-to-rvalue assignment. As a result, the code in your function first goes to the memory address (lvalue) that was sent to the function as stored in pin because of the address-of operator (&) in the call in loop(), and places (binary) 20 (the new rvalue) at that memory location (the lvalue for pinA in loop()). Using the same indirection process, it goes to the memory address held in st (the lvalue of state back in loop()) and changes its rvalue to true. Because the original memory addresses for the variables are from loop(), the rvalues for the two variables are permanently changed in loop() via indirection.
Read the above about 50 times and it will make sense.