title: Any way to retrieve values from variables different functions? c++
body: <p>For example, I have a function that turns a binary number into decimal and another function which turns a decimal number into a binary number. Then I have another function that checks if the binary and decimal numbers match (both represent the same number). These three operations have to be separate functions. I need the value from the binary function and the value from the decimal function in the checker function to check them.</p>
  
  <p>Could I use the return value? I don't want to use global variables. Sorry if this is a dumb question as I am new to functions.</p>