Or you can read about pointers and proper use of reference and deference and pass the variable to the next function