call by value takes value of variable where as call by ref takes the address of it.