--- In [email protected], radha krishnan <[EMAIL PROTECTED]> 
wrote:
>
> hello guys ,
>        following c pgm ,give the answer with explanation.i 
canot find the answer for this question
>         i)void main()
>          {
>            int x=1;
>           int y;
>            y=++x+++x+++x;
>           printf("%d",y);
>         }
>       ii) void main()
>            {
>               int x=1;
>              inty=++x+++x+++x;
>                printf("%d", y);
>             }
>           Give me the answer in detail.and also explain 
its computation manner.
>            thank u,
>                        radhakrishnan.
> 
> 
>       Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
> 
> [Non-text portions of this message have been removed]
>
I know that this is ridiculously redundant, but it appears that many 
of those that teach the C Programming Language fail to adequately 
impress upon their students that learning the ANSI C Standard will 
minimize their anguish and frustrations with this language.  

The C ANSI Standard only supports ONE post or pre increment/decrement 
operator.  There are a large number of C Compilers available, many of 
which do not conform to the ANSI C Standard.  Fully independent of 
compliance, each of the Compilers will treat DOUBLE OR MORE post or 
pre increment/decrement operators completely different.  With any of 
these Compilers, there is not guarantee that the specific Compiler 
will treat DOUBLE OR MORE post of per increment/decrement operators 
the same in different locations in the same program.  It all depends 
on the construction of the Compiler.  

Save yourself a multitude of migraines and stick with the ANSI C 
Standard.  In so doing, you know what you are going to get.  


Reply via email to