問題:
I know references are syntactic sugar, so code is easier to read and write.我知道引用是語法糖,所以代碼更容易閱讀和編寫。
But what is the difference between a pointer variable and a reference variable?但是指針變量和引用變量有什麼區別呢?
I know references are syntactic sugar, so code is easier to read and write.我知道引用是語法糖,所以代碼更容易閱讀和編寫。
But what is the difference between a pointer variable and a reference variable?但是指針變量和引用變量有什麼區別呢?