下面代码执行结束时,变量 a 的值变成 15。
void add10(int &x) { x += 10; } int main() { int a = 5; add10(a); }
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。