📜  c 中 * 和 & 的区别 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:21.638000             🧑  作者: Mango

代码示例2
int a; // Declares a variable
int *b; // Declares a pointer
int &c; // Not possible

a = 10;
b = &a; // b gets the address of a
*b = 20; // a now has the value 20