Thursday, May 01, 2008

Passing Value-Type parameters vs Passing Reference-Type parameters

In the real world coding, I rarely think about this issue much. The debugger always shows the values for you when you debug the application. However, when taking an exam (or interview), you will get a question about it and you are asked what is the output look like on the blank paper.

Again, the MSDN reference helped a lot. It listed all the examples with output. Here is the link:
http://msdn.microsoft.com/en-us/library/0f66670z(VS.71).aspx

No comments: