by reference or by value

can sombody please help me and explain to me what is the difference between:

function1 (int x, int y) and
function2 (int& x, int& y)

an example will help very much.

thanks!
Nona!
go through this link
http://www.tech-recipes.com/rx/1232/c-pointers-pass-by-value-pass-by-reference/
you will find the problem solved
Topic archived. No new replies allowed.