I have played this part of "Lesson 18: Arguments and Return Values" video more times that I'm willing to admit. However, I just can't figure out what happens to each argument taken in by the function and why.
The way I see this (which is completely wrong):
No matter what value is sent to the function's local variable iInt2, the value will always change to 1.
Also, no matter what value is sent to the function's local variable iInt3, the value will always change to 0.
The only instance where the function's local variable doesn't override the value sent to it is iInt1.
Hence:
The value 4 processed by function Sum, will = 5 (because 4 + 1 + 0 = 5)
The values 4, 3 processed by function Sum, will be = 5 (because 4 +1 + 0 =5)
The values 4, 3, -6 processed by function Sum, will be = 5 (because 4 +1 + 0 =5)
5
5
5
So... what does really happen? I'm trying to comprehend this in a way that makes more sense that the above.
