Home > Back-end >  Ask, why a1. Number=3 instead of 1
Ask, why a1. Number=3 instead of 1

Time:04-16

CodePudding user response:

A1, a2 address is the same, so any changes, another is the same value,

CodePudding user response:

Because a1 and a2 point to the same object in memory

CodePudding user response:

refer to the second floor sotondolphin response:
for a1 and a2 point to the same memory object

Oh oh I see, thank you

CodePudding user response:

reference 1st floor weixin_46969894 response:
a1, a2 address is the same, so any changes, another is the same value,

See, thank you very much