Quick Question (I hope)

This is a discussion on Quick Question (I hope) within the C Programming forums, part of the General Programming Boards category; Can someone explain the difference between ref and val? I think I am getting them mixed up when I am ...

Quick Question (I hope)

Can someone explain the difference between ref and val? I think I am getting them mixed up when I am trying to use them, and was hoping someone might be able to clear this up for me. Any help is greatly apprecaited.

>>To pass by reference you pass a pointer to the "thing" in question.
That's not actually pass by reference though, it only simulates pass by reference because the pointer references the original object, but the pointer itself still gets passed by value. A copy is made of the memory location so you can still access the original object. But maybe that's picking nits a little too much :-)

Thanks

Thanks guys that what I was looking for. I have been offline for a bit, and am trying to get myself back up to speed with C. I was reading a book that was talking about ref and val (reference and value), but it did not explain it at all, so I was getting confused. Again I appreciate the help.