how do i debug error: lvalue required as left operand of assignment?

后端 未结 4 1621
既然无缘
既然无缘 2021-01-20 04:50

I\'m compiling a .c program using gcc compiler on linux,

But , i received the error shown as \"error: lvalue required as left operand of assignment\"

The er

4条回答
  •  甜味超标
    2021-01-20 05:41

    In C, an lvalue is a "left" value, which means a token to which it is valid to assign a value. So the compiler is telling you that the token on the left side of an assignment expression is not valid.

提交回复
热议问题