I was asked this in an interview, he expained that if I put a return statement in my function it will return the value, but in that case is the variable being passed by value or memory location?

Also, you elaborate in a little more on passing variable values?