📜  通过引用调用 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.918000             🧑  作者: Mango

代码示例4
void fun3(int a)
{
    a = 10;
}

int main()
{
    int b = 1;
    fun3(b);
    // b  is still 1 now!
    return 0;   
}