Questions tagged [lvalue]

L-value represents the address of the value. "L" stands for the left side, because the address it is what is required when the variable appears on the left side of an assignment operation.

661 questions
-5
votes
3 answers

Comparing values: lvalue required as left operand of assignment

Why can't I compare the results of the random function? #include #include #include int main (){ srand(time(NULL)); /*Player 1*/ int P1d1, P1d2, P1total; P1d1 = 1 + rand() % 6; //Rolls Player 1's first die; random #…
supersaidso
  • 57
  • 1
  • 2
  • 12
1 2 3
44
45