by Kenneth Brody <kenbrody@[EMAIL PROTECTED]
>
Feb 17, 2008 at 12:04 PM
Milan.Jais@[EMAIL PROTECTED]
wrote:
>
> can any one tell me what whould be the output of this program
> int i=10;
> printf("%d",i++ + ++i + i++ + i=+i );
Only you can tell what happens on your particular system and compiler,
using whatever command-line options you gave the compiler. I know
someone here (or at least over in the unmoderated clc) whose system
outputs a suffusion of yellow.
As for me, I wouldn't dare to even think what would happen if I were
to try that code on my DS-6000, let alone the newer DS-9000.
What I want to know is why this question pops up every few months?
Is there some instructor somewhere giving it on a quiz at the start
of each semester?
--
+-------------------------+--------------------+-----------------------+
| 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@[EMAIL PROTECTED]
>
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line. Sorry.