error: called object is not a function or function pointer

前端 未结 2 822
情书的邮戳
情书的邮戳 2021-01-27 05:01

I have the following code:

  z=x-~y-1;
    printf(\"%d\",z);
  z=(x^y)+2(x&y);
    printf(\"%d\",z);
  z=(x|y)+(x&y);
    printf(\"%d\",z);
  z=2(x|y)-(x         


        
2条回答
  •  醉梦人生
    2021-01-27 05:49

    Change

    z=(x^y)+2(x&y);
    

    to

    z=(x^y)+2*(x&y);
    

    and

    z=2(x|y)-(x^y);
    

    to

    z=2*(x|y)-(x^y);
    

    You need the multiplication operator if multiplication is what you intended.

提交回复
热议问题