问题:
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?但是指针变量和引用变量有什么区别呢?