EmbLogic's Blog

problem in assingment 01

  1. int main()
  2. {
  3.       int x,y,z;
  4.       x=2;y=1;z=0;
  5.       x=x&&y||z; printf(“%dn”,x);
  6.       printf(“%dn”,x||!y&&z);
  7.       x=y=1;
  8.       z=x++-1;printf(“%dn”,x);printf(“%dn”,z);
  9.       z+=-x+++++y;printf(“%dn”,x);printf(“%dn”,z);
  10.       return 0;
  11. }

i m facing problem in line 8th & 9th.line 9th shows an error l value required an increment operend……….

One Response to problem in assingment 01

  1. himanshi says:

    hyy
    i think u might not have properly typed the code.I have also done assgnmt 1 bt none of the error lyk this have been occurred check the code again.
    and if then also the problem persists then kindly reply me bck

    thx

Leave a Reply to himanshi 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>