EmbLogic's Blog

wrong result

#include
int main ()
{
int i =0;
int i =1;
printf(“%d%d%d”,++i&&j++);
return 0;
}
result=113241147431

One Response to wrong result

  1. shyam says:

    1st “%d” gives the result->1.(for expression)

    2nd &3rd “%d%d” gives the garbage values.

Leave a Reply to shyam Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>