cpp/memory/function_argument_passing #110
Replies: 1 comment
-
说得很好,但是对于一个函数的参数列表,一般大小的,个数不是很多,都可以放到寄存器里面,而如果遇到了大对象,就传地址,然后再根据是不是传值还是引用来确定要不要调用构造函数给调用栈里面初始化一个参数 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
cpp/memory/function_argument_passing
本文详细介绍了C++中指针传递、值传递和引用传递的区别,包括指针传递、值传递和引用传递的定义、区别和使用场景等方面的分析。
https://csguide.cn/cpp/memory/function_argument_passing.html
Beta Was this translation helpful? Give feedback.
All reactions