Custom Search

Sunday, September 19, 2010

Defference between pass byVal and ByRef

ByVal : Indicates that the argument is passed by value.

ByRef : Indicates that the argument is passed by reference.

While passing the value using by reference then, if anything (value) is changed, it’s effected to original value.

While passing the value using by valuee then, if anything (value) is changed, it’s not effected to original value it’s only changed in that particular place.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.