Difference between ByVal and ByRef?

后端 未结 9 2260
囚心锁ツ
囚心锁ツ 2020-12-15 19:34

What is the difference? I always use ByVal, but, I don\'t really have a good idea of when should I and when not...

9条回答
  •  囚心锁ツ
    2020-12-15 20:10

    ByRef, one value will have 2 addresses

    So if x=80 (80 is value and x is address, then for example variable y can be 80 as well, and thus 80 can be accessed by x and y)

提交回复
热议问题