摘要:
转自:http://stackoverflow.com/questions/8848402/whats-the-difference-between-call-by-reference-and-copy-restoreMain code:#include <stdio.h> int a; int main() { a = 3; f( &a, 4); printf("%d\n", a); return 0; }Call by Value:f(int x, int &y){ // x will be 3 as passed argum 阅读全文