Call by reference, value, and name
问题 I'm trying to understand the conceptual difference between call by reference, value, and name. So I have the following pseudocode: foo(a, b, c) { b =b++; a = a++; c = a + b*10 } X=1; Y=2; Z=3; foo(X, Y+2, Z); What's X, Y, and Z after the foo call if a, b, and c are all call by reference? if a, b, and c are call-by-value/result? if a, b, and c are call-by-name? Another scenario: X=1; Y=2; Z=3; foo(X, Y+2, X); I'm trying to get a head start on studying for an upcoming final and this seemed like