char * var;
// var is a pointer variable that holds the memory address where the value is stored
var = &letter;
// the & allows us to assign the memory location of letter rather than it's value
So when I want to pass the refference of an object to a function, which of the following is correct?
1 2 3 4
void function(char *var) {...}
char letter = 'a';
function(letter);