Re: One question of C



drazet wrote:

why the answer is 12 13 13?

[code]
[... snip homework assignment ...]
[code end]

First, explain why you feel the output should be otherwise.

Then, research "scope", "call by value", and "call by reference".

Finally, explain why you still feel the output should be otherwise,
if you still don't understand.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap@xxxxxxxxx>

.