Re: One question of C
- From: Kenneth Brody <kenbrody@xxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 10:25:30 -0400
drazet wrote:
[... snip homework assignment ...]
why the answer is 12 13 13?
[code]
[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>
.
- References:
- One question of C
- From: drazet
- One question of C
- Prev by Date: Re: Print a short instead of an int... ? What's up with "%hd"?
- Next by Date: Re: The most important things to write a program
- Previous by thread: Re: One question of C
- Index(es):