Could someone please explain the difference between a “reference” and a “pointer” in this case?

后端 未结 4 1001
忘了有多久
忘了有多久 2020-12-19 09:34

When I read litb answer to this question, I learned that passing an array by reference allows us to obtain its size. I just played little bit with code, and tried to pass a

4条回答
  •  天涯浪人
    2020-12-19 10:33

    It's not as common an idiom, so it might just be that the VS team didn't add a rule to optimise it.

提交回复
热议问题