what the meaning of the error below:
assign1.c: In function `main':
assign1.c:227: invalid lvalue in assignment
i dont know what to do!
This is a discussion on error dont know within the C Programming forums, part of the General Programming Boards category; what the meaning of the error below: assign1.c: In function `main': assign1.c:227: invalid lvalue in assignment i dont know what ...
what the meaning of the error below:
assign1.c: In function `main':
assign1.c:227: invalid lvalue in assignment
i dont know what to do!
x + y - 10 = z;
^^ that's a bad lvalue. with assignment expressions in the form x = y, x has to resolve to a single variable address. you can't do fancy math on that side.
.sect signature
Post that line (227) and we can help you spot the error (unless you figured it out already).
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.